/*
 * UX Portfolio - Skandinavisk Design System med personlighet
 * 
 * Inspirert av prisvinnende designbyråer med skandinavisk sjarm
 * Fargepalett: Jordnære toner med varme akcenter
 * Typografi: Moderne system fonts med karakter
 * 
 * Spacing-skala: 0.5rem, 1rem, 1.5rem, 2rem, 3rem, 4rem, 6rem
 * 
 * TODO: Bytt ut placeholder-bilder og tekst
 */

/* CSS Custom Properties */
:root {
  /* Lys modus farger - edgy og moderne toner */
  --bg: #F7F9ED;
  --fg: #1E113D;
  --muted: #6b7280;
  --accent: #503653;
  --accent-dark: #3d2a40;
  --accent-light: #6a4773;
  --card: #FDFEF8;
  --border: #e5e7eb;
  --paper: #f9fafb;
  --warm-gray: #64748b;
  --cream: #f8fafc;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Typografi - mer karakter og personlighet */
  --font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-family-display: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-size-xs: 0.875rem;
  --font-size-sm: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  --font-size-4xl: 3rem;
  --line-height-tight: 1.1;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Layout - mer sofistikert */
  --radius: 0.75rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.16);
  
  /* Container */
  --container-max: 1200px;
  --container-padding: var(--space-2xl);
  
  /* Animations */
  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.25s ease-out;
  --transition-slow: 0.4s ease-out;
}

/* Mørk modus - deaktivert for å sikre konsistente farger */
/* 
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a1a;
    --fg: #f0f0f0;
    --muted: #a0a0a0;
    --accent: #d4a574;
    --accent-dark: #b8935a;
    --accent-light: #e8c4a0;
    --card: #2a2a2a;
    --border: #404040;
    --paper: #252525;
    --warm-gray: #6b6b6b;
    --cream: #2d2d2d;
  }
}
*/

/* Reset og base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  color: var(--fg);
  background-color: var(--bg);
  font-weight: var(--font-weight-normal);
  letter-spacing: -0.01em;
    overflow-x: hidden;
    width: 100%;
}

/* Skip link - mer elegant */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
    background: var(--paper);
    color: var(--fg);
    padding: 0.5rem 0.75rem;
  text-decoration: none;
    border-radius: 0;
  z-index: 1000;
    font-weight: normal;
    font-size: 0.95rem;
  transition: var(--transition-fast);
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.skip-link:focus {
  top: 6px;
  transform: translateY(0);
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Typografi - mer karakter */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-display);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  margin-bottom: 0.2em;
  letter-spacing: -0.02em;
  color: #391E3F;
}

h1 {
  font-size: var(--font-size-4xl);
  margin-bottom: 0.2em;
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
}

h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
}

.project-section h3 {
  margin-top: var(--space-xl);
}

p {
  margin-bottom: var(--space-sm);
  line-height: var(--line-height-relaxed);
  color: var(--fg);
  font-size: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: var(--transition-fast);
}

.container:has(.project-title) p a {
  color: #BE3160;
  text-decoration: underline;
  font-weight: var(--font-weight-semibold);
}

.container:has(.project-title) p a:hover {
  text-decoration: none;
  color: var(--accent-dark);
}

a:hover,
a:focus {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

/* Focus styles - mer elegant */
*:focus {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* Layout */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Header - nytt design */
.header {
  background: rgba(253, 252, 248, 0.7);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    left: 0;
    right: 0;
}

.header__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__info {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-left: -1rem;
}

.header__name {
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  color: #BE3160;
  font-family: var(--font-family-display);
  letter-spacing: -0.01em;
  margin: 0;
  margin-top: var(--space-sm);
  line-height: 1;
  text-decoration: none;
  display: inline-block;
  text-transform: uppercase;
  -webkit-text-stroke: 1px #BE3160;
  text-stroke: 1px #BE3160;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.header__name:hover {
  color: #BE3160;
  text-decoration: none;
}

.header__name:active {
  color: #3d0a22;
}

.header__name:focus {
  outline: none;
}

.header__name:focus-visible {
  outline: none;
}

.header__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: var(--fg);
  font-family: var(--font-family);
  margin: 0;
  margin-top: var(--space-xs);
  line-height: 1;
  text-decoration: none;
  display: inline-block;
}

.header__buttons {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-end;
  margin-top: var(--space-xs);
  margin-left: auto;
  padding-left: 8rem;
}

@media (max-width: 768px) {
  .header__content {
    flex-direction: column;
        align-items: center;
    gap: var(--space-md);
  }
  
  .header__info {
    padding-left: 0;
        text-align: center;
  }
  
  .header__buttons {
        align-items: center;
        justify-content: center;
    margin-top: 0;
        gap: var(--space-xs);
        width: 100%;
        padding: 0 var(--space-md);
    }

    .header__name {
        font-size: 1.75rem;
    }

    .header__title {
        font-size: 1.1rem;
    }

    .header__button {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
  }
}

.header__button {
  padding: var(--space-xs) var(--space-md);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-family);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  display: inline-block;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
}

.header__button--contact {
  background-color: #C4F8F4;
  color: var(--fg);
}

.header__button--about {
  background-color: #DDECEB;
  color: var(--fg);
}

.header__button--about.active {
  background-color: #DDECEB;
  color: var(--fg);
  box-shadow: none;
  transform: translateY(2px) translateX(2px);
}

.header__button:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.6);
  text-decoration: none;
}

.header__button--about.active:hover {
  transform: none;
  box-shadow: none;
}

.header__button:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  text-decoration: none;
}

.header__button:active {
  text-decoration: none;
}

/* Main content */
.main {
  padding: var(--space-xl) 0;
}

/* Hero section - mer dramatisk */
.hero {
  text-align: center;
  padding: var(--space-3xl) 0;
  margin-bottom: var(--space-3xl);
  position: relative;
}

.hero__title {
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--fg), var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__intro {
  font-size: var(--font-size-md);
  color: var(--fg);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--line-height-relaxed);
}

.hero__intro p {
  margin-bottom: var(--space-sm);
}

/* Project grid */
.projects {
  margin-bottom: var(--space-3xl);
}

.projects__title {
  text-align: left;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  font-size: var(--font-size-xl);
}

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

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

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

/* Project card - mer elegant */
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.project-card:hover {
  text-decoration: none;
}

.project-card:hover .project-card__title,
.project-card:hover .project-card__description {
  color: #531334;
}

.project-card__image {
  width: 100%;
  height: 0;
    padding-bottom: 85%;
    /* Taller aspect ratio for more vertical space */
  overflow: hidden;
  background: var(--paper);
  position: relative;
}

.project-card--dark-blue .project-card__image {
  background: #1e3a5f;
}

.project-card__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__content {
  padding: var(--space-sm) var(--space-md);
}

.project-card__title {
  margin-bottom: 0.2em;
  color: var(--fg);
  font-weight: var(--font-weight-semibold);
}

.project-card__description {
  color: var(--fg);
  font-size: 1rem;
  line-height: var(--line-height-relaxed);
}

/* About section - mer elegant */
.about {
  background: linear-gradient(135deg, var(--paper), var(--cream));
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-3xl);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
  opacity: 0.1;
  border-radius: 50%;
}

.about__title {
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.about__content {
  display: grid;
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .about__content {
    grid-template-columns: 1fr 1fr;
  }
}

.about__text {
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
  color: var(--fg);
}

/* Footer - mer elegant */
.footer {
  background: linear-gradient(135deg, var(--card), var(--paper));
  padding: var(--space-xl) 0;
  text-align: center;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.footer__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: center;
  text-align: center;
}

.footer__main {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
}

.footer__contact h2 {
    margin: 0;
    font-size: 1.5rem;
}

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

.footer__contact-row .contact-link {
    font-size: 1.25rem;
    font-weight: var(--font-weight-medium);
}

.footer__main h2 {
  margin: 0;
  font-size: 1.5rem;
}

.footer__linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
    padding: var(--space-xs);
  color: var(--muted);
  transition: var(--transition-fast);
  text-decoration: none;
}

.footer__linkedin:hover,
.footer__linkedin:focus {
    color: #0A66C2;
}

.footer__social {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.footer__social a {
  padding: var(--space-sm);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--muted);
  transition: var(--transition-fast);
  border: 1px solid var(--border);
}

.footer__social a:hover,
.footer__social a:focus {
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Project page styles - mer sofistikert */
.project-hero {
  text-align: center;
  padding: var(--space-xl) 0;
  margin-bottom: var(--space-xl);
  position: relative;
}

.project-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
}

.project-section {
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
  transition: var(--transition-normal);
}

.project-section:hover {
  box-shadow: none;
  transform: none;
}

.project-section__title {
  margin-bottom: var(--space-md);
  color: var(--accent);
  font-weight: var(--font-weight-semibold);
  position: relative;
  padding-left: var(--space-sm);
}

.project-section__title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
}

.project-image {
  width: 100%;
  height: auto;
  border-radius: 0;
  margin: var(--space-md) 0;
  box-shadow: none;
}


.project-back-link {
  display: inline-flex;
  align-items: center;
    justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
    padding: 0.4rem 0.8rem;
  background: var(--paper);
    border-radius: 0;
    color: var(--fg);
  transition: var(--transition-fast);
    border: 2px solid rgba(80, 54, 83, 0.3);
  font-weight: var(--font-weight-medium);
    font-size: 1rem !important;
}

.project-back-link:hover,
.project-back-link:focus {
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Content sections for legal pages */
.content-section {
    margin-bottom: var(--space-2xl);
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    margin-bottom: var(--space-md);
    color: var(--heading);
}

.content-section p {
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.content-section ul {
    margin: var(--space-md) 0;
    padding-left: var(--space-xl);
}

.content-section li {
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

/* Hero welcome section on homepage */
.hero-welcome {
  text-align: center;
  padding: var(--space-3xl) 0 var(--space-xl);
  margin-bottom: var(--space-lg);
}

.hero-welcome__title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--fg);
  margin: 0;
}

/* About page styles - mer elegant */
.about-hero {
    text-align: left;
    padding: 0.5rem 0;
    margin: 0.5rem auto 0 auto;
  position: relative;
    max-width: 900px;
}


.about-intro {
  max-width: 900px;
  margin: var(--space-lg) auto var(--space-xl);
    padding: 0 var(--space-lg);
  display: flex;
    gap: var(--space-lg);
  align-items: flex-start;
}

.about-intro__text {
  flex: 1;
  font-size: 1.2rem;
  line-height: var(--line-height-relaxed);
  color: var(--fg);
  text-align: left;
  font-family: Arial, sans-serif;
  padding-top: 4rem;
}

.about-intro__image {
  flex: 0 0 300px;
  margin: 0;
    margin-top: 0;
}

.about-intro__image img {
  width: 100%;
  height: auto;
  border-radius: 0;
    clip-path: polygon(30% 0%,
    65% 2%, 
    85% 8%, 
    95% 25%, 
    100% 45%, 
    98% 68%, 
    88% 82%, 
    75% 95%, 
    50% 100%, 
    28% 98%, 
    12% 88%, 
    3% 72%, 
    0% 50%, 
    2% 30%, 
            8% 15%);
}

.about-intro__image figcaption {
  margin-top: var(--space-sm);
  font-size: var(--font-size-xs);
  color: var(--muted);
  text-align: center;
  font-style: italic;
  display: block;
  width: 100%;
}

.about-passion {
  max-width: 900px;
  margin: 0 auto var(--space-xl);
}

.about-passion h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.about-passion h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.about-passion p {
  margin-bottom: var(--space-md);
}

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

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Personality Sliders */
.personality-sliders {
    max-width: 600px;
    margin: var(--space-3xl) auto;
    padding-left: 7rem;
}

.slider-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    width: 100%;
    max-width: 100%;
}

.slider-item:last-child {
    margin-bottom: 0;
}

.slider-label {
    font-size: 1.1rem;
    color: var(--fg);
  font-weight: var(--font-weight-semibold);
    font-family: var(--font-family-display);
    min-width: 140px;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.slider-label--left {
    text-align: right;
}

.slider-label--right {
    text-align: left;
}

.slider {
    flex: 1;
    min-width: 0;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, var(--accent) 0%, var(--accent-light) 100%);
    outline: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.slider:hover {
    opacity: 0.8;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border: 2px solid var(--bg);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent);
    border: 2px solid var(--bg);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .personality-sliders {
        padding: 0 var(--space-md);
        padding-left: var(--space-md);
        max-width: 100%;
    }

    .slider-label {
        min-width: 80px;
        max-width: 100px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .personality-sliders {
        padding: 0 var(--space-sm);
        padding-left: var(--space-sm);
    }

    .slider-item {
        gap: var(--space-sm);
    }

    .slider-label {
        min-width: 60px;
        max-width: 80px;
        font-size: 0.7rem;
    }
}

/* Instagram inline icon */
.instagram-link {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    color: var(--fg);
    transition: var(--transition-fast);
    text-decoration: none;
}

.instagram-link:hover,
.instagram-link:focus {
    color: #E4405F;
}

.instagram-link svg {
    display: inline-block;
    vertical-align: middle;
}

/* Larger text for graphics page hero intro */
.hero-intro p {
    font-size: 1.25rem;
    line-height: 1.6;
}

.hero-intro p a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: var(--transition-fast);
}

.hero-intro p a:hover,
.hero-intro p a:focus {
    color: var(--fg);
    text-decoration-thickness: 3px;
}

/* Graphics Gallery */
.graphics-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-2xl) 0;
}

.graphics-item {
    margin: 0;
    overflow: hidden;
    border-radius: 0;
    background: var(--card);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    padding: var(--space-md) 0;
}

.graphics-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.graphics-item img {
    width: 100%;
  height: auto;
    display: block;
  object-fit: contain;
    object-position: center;
    max-height: 320px;
}

@media (max-width: 768px) {
    .graphics-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .graphics-gallery {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

/* About Grid - Simple Layout */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin: var(--space-2xl) 0;
}

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

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

.about-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.about-card__image {
  width: 100%;
    height: auto;
    display: block;
  border-radius: var(--radius);
    margin-bottom: var(--space-sm);
}

.about-card__text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--fg);
    margin: 0;
}

/* Contact CTA - mer elegant */
.contact-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--bg);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  text-align: center;
  margin-top: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.contact-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.contact-cta__title {
  color: var(--bg);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.contact-cta__link {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background: var(--bg);
  color: var(--accent);
  border-radius: var(--radius);
  font-weight: var(--font-weight-semibold);
  transition: var(--transition-fast);
  position: relative;
  z-index: 1;
  border: 2px solid var(--bg);
}

.contact-cta__link:hover,
.contact-cta__link:focus {
  background: transparent;
  color: var(--bg);
  border-color: var(--bg);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .snap--tilt-l,
  .snap--tilt-r,
  .snap--tilt-s {
    transform: none;
  }
  
  .project-card:hover,
  .project-card:focus {
    transform: none;
  }

    .about-card:hover {
        transform: none;
    }

    .slider::-webkit-slider-thumb:hover,
    .slider::-moz-range-thumb:hover {
        transform: none;
    }

    .graphics-item:hover {
    transform: none;
  }
}

/* Utility classes */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--muted);
}

.mb-sm {
    margin-bottom: var(--space-sm);
}

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

.mb-lg {
    margin-bottom: var(--space-lg);
}

.mb-xl {
    margin-bottom: var(--space-xl);
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Personas grid styling */
.personas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin: var(--space-md) 0;
}

.persona-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: var(--space-md);
}

.persona-card__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.persona-card__info p {
  margin-bottom: var(--space-xs);
  font-size: 1rem;
  line-height: var(--line-height-relaxed);
}

.persona-card__info p strong {
  color: var(--fg);
  font-weight: var(--font-weight-semibold);
}

.persona-card__info ul {
  margin: var(--space-xs) 0 0 0;
  padding-left: 1.5rem;
  list-style: disc;
}

.persona-card__info li {
  margin-bottom: var(--space-xs);
  font-size: 1rem;
  line-height: var(--line-height-relaxed);
}

@media (max-width: 768px) {
  .personas-grid {
    grid-template-columns: 1fr;
  }
}

/* User story styling */
.user-story {
  font-size: var(--font-size-xl);
  font-style: italic;
  color: #BE3160;
  padding: 0;
  margin: var(--space-lg) 0;
  border-radius: 0;
  font-family: var(--font-family);
  line-height: var(--line-height-relaxed);
}

/* Acceptance criteria styling */
.acceptance-criteria {
  border-radius: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  padding-left: 0;
}

.acceptance-criteria li {
  margin-bottom: var(--space-xs);
  padding-left: 2rem;
  position: relative;
}

.acceptance-criteria li::before {
  content: "•";
  color: #821A31;
  font-weight: bold;
  position: absolute;
  left: 0;
  margin-right: 0.5rem;
  font-size: 2em;
  line-height: 1;
  top: 0.05em;
}

/* Project meta styling */
.project-meta {
  margin: 0;
  padding: 0;
  border-radius: 0;
}

.project-meta__item {
  margin-bottom: var(--space-sm);
  line-height: var(--line-height-relaxed);
  font-size: 1.125rem;
}

.project-meta__item:last-child {
  margin-bottom: 0;
}

.project-meta+p {
  margin-top: var(--space-sm);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.project-meta__item strong {
  color: var(--accent);
  font-weight: var(--font-weight-semibold);
  font-size: 1.125rem;
}

/* Project page styles */
.main:has(.project-section) {
  padding: 0;
}

.project-section {
    padding: var(--space-lg) 0;
  background: #F0F1E8;
  box-shadow: none;
  border-radius: 0;
  width: 100%;
  margin: 0;
}

.project-section .container>*:not(.prototyping-images):not(.image-card):not(figure) {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.project-section--light {
  background: #FDFEF8;
  box-shadow: none;
  border-radius: 0;
}

.project-section:first-of-type {
  padding-top: 0;
}

.project-title {
  font-size: var(--font-size-3xl);
  margin-top: 0;
  padding-top: calc(5rem + 1em);
  margin-bottom: 0.2em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.container:has(.project-header) .project-title {
  max-width: 1100px;
}

.project-header {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
  margin-top: 0;
  margin-bottom: var(--space-xl);
}

.project-meta {
  flex: 0 0 40%;
  max-width: 40%;
  padding-top: var(--space-md);
}

.project-text {
  flex: 0 0 40%;
  max-width: 40%;
  padding-top: var(--space-md);
}

.project-text p {
  margin-bottom: var(--space-md);
}


.project-hero-image {
  flex: 0 0 70%;
  max-width: 70%;
  margin: 0;
  margin-top: -3.5rem;
  margin-right: -20rem;
}

.project-hero-image img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

/* Ensure all project images have consistent border radius */
.container:has(.project-title) img {
  border-radius: 0;
}

/* Project page container - Medium-style with more whitespace */
.container:has(.project-title) {
  max-width: 1400px;
  padding-left: 12rem;
  padding-right: 12rem;
}

@media (max-width: 1024px) {
  .container:has(.project-title) {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

@media (max-width: 768px) {
  .container:has(.project-title) {
    padding-left: 2rem;
    padding-right: 2rem;
  }

    .project-title {
        padding-top: 0;
        margin-top: calc(var(--space-lg) * 1.5);
    }

    .hero-intro {
        margin-top: calc(var(--space-lg) * 1.5);
  }
}

/* Narrow content for project pages */
.project-title~h2,
.project-title~h2+p,
.project-title~h3,
.project-title~blockquote,
.project-title~ul,
.project-title~.hero-intro,
.project-title~.personas-grid,
.project-title~.prototyping-images {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.project-title~p,
.project-title~.functions-grid,
.project-title~.project-nav,
.project-title~.project-meta {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.project-title~.image-card {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* Consistent section spacing */
.project-title~h2 {
  margin-top: var(--space-3xl);
  margin-bottom: 0.3em;
}

.project-title~h3 {
  margin-top: var(--space-xl);
  margin-bottom: 0.3em;
}

.hero-intro,
.prototyping-images,
.functions-grid,
.image-card {
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

/* All text on project pages same size */
.container:has(.project-title) p,
.container:has(.project-title) li,
.container:has(.project-title) .function-item__description,
.container:has(.project-title) .hero-intro__text p,
.project-section p,
.project-section li {
  font-size: 1.125rem;
}

.project-image {
  margin: var(--space-lg) 0;
  text-align: center;
}

.project-image img {
  max-width: 100%;
  height: auto;
  border-radius: 0;
}

.project-image--small {
  flex: 0 0 45%;
  margin: 0;
  margin-left: 0;
  display: flex;
  overflow: visible;
  padding: 0;
}

.project-image--small img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  transform: scale(1);
}

.project-image--medium {
  width: 105%;
  display: inline-block;
  margin: var(--space-sm) auto;
  vertical-align: top;
}

.project-image--medium img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.project-image--large {
  flex: 0 0 75%;
  margin: 0;
  display: flex;
  overflow: visible;
  padding: 0;
}

.project-image--large img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.center-image {
  text-align: center;
  margin: var(--space-md) 0;
}

.prototyping-images {
  display: flex;
  gap: var(--space-md);
  align-items: stretch;
  margin: var(--space-md) 0;
  overflow: visible;
  padding: 0;
}

.prototype-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  flex: 0 0 45%;
}

.prototype-column .project-image--small {
  margin: 0;
}

.prototype-row {
  display: flex;
  gap: var(--space-md);
  flex: 1;
  align-items: flex-end;
}

.prototype-row .project-image--small {
  margin: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.prototyping-images figcaption {
  margin-top: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--fg);
  text-align: left;
  width: 100%;
  padding: 0;
  margin-left: 0;
}

.prototyping-images img {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  height: 100%;
  object-fit: contain;
}

.prototyping-images figure {
  background: transparent;
  border: none;
  box-shadow: none;
}

.project-image--large {
  display: flex;
  flex-direction: column;
}

/* Functions grid styling */
.functions-grid {
  display: block;
  margin: var(--space-md) 0;
  border-radius: 0;
  padding: var(--space-md);
}

.function-item {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}

.function-item:last-child {
  border-bottom: none;
}

.function-item__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--accent);
  margin-bottom: 0.2em;
  font-family: var(--font-family-display);
}

.function-item__description {
  color: var(--fg);
  line-height: var(--line-height-relaxed);
  margin: 0;
  max-width: 70%;
}

.function-item--with-image {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: flex-start;
}

.function-item__content {
  flex: 1;
  width: 100%;
}

.function-item--with-image .function-item__description {
  max-width: 100%;
}

.function-item--wide .function-item__description {
  max-width: 100%;
}

.function-item__image {
  margin: 0;
}

.function-item__image img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 0.75rem;
}

.function-item__images {
  display: flex;
  gap: var(--space-md);
  width: 100%;
  justify-content: flex-start;
}

.function-item__images .function-item__image {
  flex: 1;
  max-width: none;
}

.function-disclaimer {
  padding: var(--space-sm) 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin: var(--space-sm) 0;
}

.function-disclaimer p {
  margin: 0;
  font-style: italic;
  color: var(--muted);
  font-size: var(--font-size-sm);
}

/* Image card styling */
.image-card {
  margin: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.image-card img {
    width: 100%;
    height: auto;
    display: block;
}

.image-card__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.image-card__grid figure {
  margin: 0;
}

.image-card__grid img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: calc(var(--space-3xl) + 2rem);
  margin-bottom: var(--space-xl);
  gap: var(--space-md);
}

.back-link {
  display: inline-flex;
  align-items: center;
    justify-content: center;
  gap: var(--space-xs);
    padding: 0.4rem 0.8rem;
  background: var(--paper);
    border-radius: 0;
  color: var(--text);
  font-weight: 500;
    font-size: 0.95rem;
  transition: var(--transition-fast);
    border: 2px solid rgba(80, 54, 83, 0.3);
  text-decoration: none;
}

.back-link:hover,
.back-link:focus {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Hero intro layout */
.hero-intro {
  display: flex;
    flex-direction: column;
  gap: var(--space-lg);
  align-items: flex-start;
  margin: var(--space-xl) 0;
  overflow: visible;
  padding: var(--space-md) 0;
}

.hero-intro:has(.hero-intro__image),
.hero-intro:has(.hero-intro__text) {
    flex-direction: row;
    align-items: flex-start;
}

.hero-intro__image {
    flex: 0 0 50%;
  margin: 0;
  margin-top: 0;
}

.hero-intro__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
    transform: scale(0.9);
  transform-origin: top center;
}

.hero-intro__meta {
  flex: 0 0 40%;
  margin-top: 0;
  padding: var(--space-md);
}

.hero-intro__text {
    flex: 0 0 55%;
    max-width: 55%;
  margin-left: 0;
  padding: 0;
    margin-top: 0;
}

.hero-intro__text h1 {
    margin-top: 0;
}

.hero-intro__text p {
    font-size: 1.125rem;
    line-height: var(--line-height-relaxed);
}

.hero-intro__text .project-meta {
    max-width: 100%;
    width: 100%;
}

.hero-intro__text .project-meta__item {
    max-width: 100%;
    width: 100%;
}

.hero-intro__meta .project-meta__item {
  padding: 0;
  margin-bottom: 0.5rem;
  border-radius: 2px;
  font-size: 1rem;
  line-height: 1.6;
}

.hero-intro__meta .project-meta__item:last-child {
  margin-bottom: 0;
}

/* Print styles */
@media print {

  .header,
  .footer,
  .skip-link {
    display: none;
  }
  
  .main {
    padding: 0;
  }
  
  * {
    background: white !important;
    color: black !important;
  }
}

/* ============================================
   Cookie Banner & Settings
   ============================================ */

.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  max-width: 320px;
  background: var(--card);
    border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 1.25rem;
  z-index: 9999;
  animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-banner__content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cookie-banner__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading);
  margin: 0;
}

.cookie-banner__description {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--fg);
  margin: 0;
}

.cookie-banner__link {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-banner__link:hover {
  color: var(--accent-dark);
}

.cookie-banner__buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cookie-banner__button {
  padding: 0.625rem 1rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.cookie-banner__button--primary {
  background: var(--accent);
  color: white;
}

.cookie-banner__button--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.cookie-banner__button--secondary {
  background: var(--bg);
  color: var(--fg);
    border: 2px solid var(--border);
}

.cookie-banner__button--secondary:hover {
  background: var(--paper);
}

.cookie-banner__button--text {
  background: transparent;
  color: var(--accent);
  padding: 0.5rem;
}

.cookie-banner__button--text:hover {
  text-decoration: underline;
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.cookie-modal__content {
  position: relative;
  background: var(--card);
    border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.cookie-modal__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 1rem 0;
}

.cookie-modal__description {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--fg);
  margin: 0 0 1.5rem 0;
}

.cookie-option {
  padding: 1rem;
    border: 2px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.cookie-option__header {
  margin-bottom: 0.5rem;
}

.cookie-option__label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.cookie-option__checkbox {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  accent-color: var(--accent);
}

.cookie-option__checkbox:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-option__title {
  font-weight: 600;
  color: var(--heading);
  font-size: 1rem;
}

.cookie-option__description {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  padding-left: 2rem;
}

.cookie-modal__buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.cookie-modal__buttons .cookie-banner__button {
  flex: 1;
}

/* Footer Legal Links */
.footer__legal {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}

.footer__legal a,
.footer__legal-button {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
    font-size: 0.875rem;
    font-weight: normal;
    font-family: inherit;
}

.footer__legal-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    line-height: inherit;
}

.footer__legal a:hover,
.footer__legal-button:hover {
  color: var(--accent);
}

.footer__legal a[aria-current="page"] {
  color: var(--accent);
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cookie-banner {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }

  .cookie-modal__content {
    padding: 1.5rem;
  }

  .cookie-modal__buttons {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {

  .cookie-banner,
  .cookie-modal__content {
    animation: none;
  }
}

/* ============================================
   Sparkle Effect
   ============================================ */

.sparkle {
  position: absolute;
  pointer-events: none;
  z-index: 9999;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #FFD700 0%, #FFA500 50%, transparent 70%);
  border-radius: 50%;
  animation: sparkle-float 0.8s ease-out forwards;
  opacity: 0;
}

.sparkle::before,
.sparkle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #FFD700, transparent);
  transform: translate(-50%, -50%);
}

.sparkle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

@keyframes sparkle-float {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }

  10% {
    opacity: 1;
  }

  50% {
    opacity: 0.8;
    transform: translateY(-20px) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-40px) scale(0.5) rotate(180deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sparkle {
    display: none;
  }
}

/* ============================================
   Responsive Design - Mobile/Tablet
   ============================================ */

@media (max-width: 768px) {

  /* Hero intro - stack vertically on mobile */
    .hero-intro,
    .hero-intro:has(.hero-intro__image),
    .hero-intro:has(.hero-intro__text),
    .hero-intro:has(.project-image--small),
    .hero-intro:has(.project-image--medium) {
        flex-direction: column !important;
    gap: var(--space-md);
  }
  
    .hero-intro .hero-intro__text,
    .hero-intro .hero-intro__image,
    .hero-intro .project-image--small,
    .hero-intro .project-image--medium,
    .hero-intro .project-image--large {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        flex-basis: 100% !important;
    }

    .hero-intro__image img,
    .project-image--small img,
    .project-image--medium img {
        transform: scale(1);
    }

    .hero-intro .project-image--small,
    .hero-intro .project-image--medium,
    .hero-intro .project-image--large {
        margin: var(--space-md) 0 !important;
        order: 2;
        display: block !important;
    }

    .hero-intro .hero-intro__text {
        order: 1;
    }

    /* Project header - stack vertically on mobile */
    .project-header {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .project-meta {
    flex: 1 1 100%;
    max-width: 100%;
        order: 1;
    }

    .project-text {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .project-hero-image {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
        margin: var(--space-lg) 0 0 0;
        order: 2;
    }

    /* About hero - add padding */
    .about-hero {
        padding: 0.5rem var(--space-md);
        text-align: center;
  }
  
  /* About intro - stack vertically */
  .about-intro {
    flex-direction: column;
    text-align: center;
        padding: 0 var(--space-md);
    }

    .about-intro > div {
        width: 100%;
    }

    .about-intro__text {
        font-size: 1.1rem;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-top: 0;
  }
  
  .about-intro__image {
    order: -1;
    margin-bottom: var(--space-md);
        flex: 0 0 200px;
        max-width: 200px;
        margin-left: auto;
        margin-right: auto;
  }
  
  /* Project navigation - stack or reduce padding */
  .project-nav {
    flex-direction: column;
    gap: var(--space-sm);
    align-items: stretch;
  }
  
  .back-link {
    width: 100%;
    justify-content: center;
  }
  
  /* Functions grid - single column on mobile */
  .functions-grid {
    grid-template-columns: 1fr;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .function-item {
        padding-left: 0;
        padding-right: 0;
    }

    .function-item__description {
        max-width: 100%;
  }
  
  .function-item--wide,
  .function-item--with-image {
    grid-column: span 1;
  }

    /* Function item images - stack vertically */
    .function-item__images {
        flex-direction: column;
        gap: var(--space-md);
    }

    .function-item__images .function-item__image {
        width: 100%;
        max-width: 100%;
  }
  
  /* Prototyping images - adjust layout */
  .prototyping-images {
    flex-direction: column;
        gap: var(--space-md);
  }
  
  .prototype-row {
    flex-direction: column;
        gap: var(--space-md);
    }

    .prototype-column {
        width: 100%;
    }

    .prototyping-images figure {
        width: 100% !important;
        max-width: 100% !important;
  }
  
  /* Image card grid - single column */
  .image-card__grid {
    grid-template-columns: 1fr;
  }

    .image-card__grid img {
        max-width: 70%;
        margin: 0 auto;
        display: block;
        border-radius: 0;
    }

    .project-hero-image img {
        border-radius: 0;
    }

    .hero-intro__image img,
    .project-image--small img,
    .project-image--medium img,
    .project-image--large img,
    .function-item__image img {
        border-radius: 0;
    }

    .container:has(.project-title) img {
        border-radius: 0 !important;
  }
  
  /* Footer - adjust spacing */
    .footer::before {
        display: none;
    }

  .footer__content {
    gap: var(--space-md);
  }
  
    .footer__contact h2 {
    font-size: 1.25rem;
  }

    .footer__contact-row {
        flex-direction: column;
        gap: var(--space-sm);
  }
  
  .footer__legal {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }
  
  /* Project meta - adjust layout */
  .project-meta {
    gap: var(--space-sm);
  }
  
  /* Acceptance criteria list */
  .acceptance-criteria {
    padding-left: var(--space-md);
  }
  
  /* Reduce heading sizes on mobile */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
        font-size: 1.5rem;
  }
  
  /* Adjust container padding */
  .container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
  
  /* Project images - full width on mobile */
  .project-image--small,
  .project-image--medium,
  .project-image--large {
        max-width: 100% !important;
        width: 100% !important;
        flex: 1 1 100% !important;
        margin: var(--space-md) 0;
  }
}

@media (max-width: 480px) {

  /* Extra small screens - further adjustments */
  .header__name {
        font-size: 1.5rem;
  }
  
  .header__title {
        font-size: 1rem;
  }
  
  .header__button {
        font-size: 0.85rem;
        padding: 0.5rem 0.9rem;
  }
  
  .project-card__title {
    font-size: 1rem;
  }
  
  .project-card__description {
    font-size: 0.875rem;
  }
  
  /* Reduce text size slightly */
  .container:has(.project-title) p,
  .project-section p {
    font-size: 1rem;
  }

    .user-story {
    font-size: 1rem;
  }
  
  /* Stack persona cards */
  .persona-card {
    padding: var(--space-md);
  }
  
  /* Adjust snap grid for very small screens */
  .snap-grid {
    grid-template-columns: 1fr;
  }
  
  .snap,
  .snap--w2 {
    grid-column: span 1 !important;
  }

    /* About grid mobile adjustments */
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .about-hero {
        padding: 0.5rem var(--space-sm);
        text-align: center;
    }

    .about-intro > div {
        width: 100%;
    }

    .about-intro__text {
        font-size: 1rem;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-top: 0;
    }
}