
/* =========================================
   ALVA DANIELSSON – PORTFOLIO
   GEMENSAM DESIGN FÖR ALLA SIDOR
========================================= */

:root {
  --bg: #f8f7f3;
  --text: #171717;
  --muted: #62615e;
  --surface: #e9e6df;
  --surface-light: #f8f7f3;

  --page-width: 1280px;
  --content-width: 760px;
  --page-padding: clamp(22px, 5vw, 80px);

  --space-section: clamp(90px, 11vw, 160px);
  --space-large: clamp(55px, 7vw, 100px);
  --space-medium: clamp(30px, 4vw, 60px);

  --heading-xl: clamp(64px, 10vw, 150px);
  --heading-lg: clamp(44px, 6vw, 84px);
  --heading-md: clamp(32px, 4vw, 54px);

  --body-size: clamp(17px, 1.35vw, 19px);
}

/* =========================================
   GRUND
========================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
}

img {
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

p {
  line-height: 1.65;
}

::selection {
  background: var(--text);
  color: var(--bg);
}

/* Inga dekorativa nummer eller små etiketter */

.small-text,
.hero-category,
.section-heading > p,
.project-card-number,
.lillhamn-dot,
.fh-dot,
.fh-kicker,
.fh-index,
.lillhamn-story-label,
.lillhamn-reel-tag,
.lillhamn-featured-copy > span,
.accent-dot {
  display: none !important;
}

/* =========================================
   HEADER
========================================= */

header,
.site-header {
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding: 30px var(--page-padding);

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.logo {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

header nav,
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(15px, 2.5vw, 34px);
}

header nav a,
.site-header nav a {
  font-size: 15px;
  transition: opacity 0.2s ease;
}

header nav a:hover,
.site-header nav a:hover {
  opacity: 0.5;
}

/* =========================================
   GEMENSAMMA LÄNKAR OCH KNAPPAR
========================================= */

.button,
.fh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  width: fit-content;
  padding: 15px 24px;

  background: var(--text);
  color: var(--bg);

  border: 0;
  border-radius: 0;

  font-size: 15px;
  font-weight: 500;

  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.button:hover,
.fh-button:hover {
  background: #444;
}

.back-link,
.fh-back {
  display: inline-block;
  width: fit-content;

  margin: 0 0 clamp(45px, 6vw, 85px);
  padding: 0;

  font-size: 15px;
  font-weight: 400;
  text-decoration: none;

  transition: opacity 0.2s ease;
}

.back-link:hover,
.fh-back:hover {
  opacity: 0.5;
}

/* =========================================
   STARTSIDA – GEMENSAMT
========================================= */

#hem,
#projekt,
#playground,
#om,
#kontakt {
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
}

.section-heading {
  margin-bottom: clamp(35px, 5vw, 70px);
}

.section-heading h2,
.playground-header h2 {
  font-size: var(--heading-lg);
  line-height: 1;
  letter-spacing: -0.06em;
}

/* =========================================
   STARTSIDA – HERO
========================================= */

.hero {
  min-height: min(820px, 85svh);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;

  padding-top: 100px;
  padding-bottom: 130px;
}

.hero h1 {
  font-size: var(--heading-xl);
  line-height: 0.92;
  letter-spacing: -0.075em;
  margin-bottom: 42px;
}

.hero h1 span {
  font-style: italic;
  font-weight: 500;
}

.hero .intro,
.hero > .intro {
  max-width: 570px;
  margin-bottom: 36px;

  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.6;
}

/* =========================================
   STARTSIDA – PROJEKTKORT
========================================= */

#projekt {
  padding-top: 80px;
  padding-bottom: var(--space-section);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(22px, 3vw, 44px);
  row-gap: clamp(55px, 6vw, 90px);
}

.featured-card {
  display: block;
  min-width: 0;
}

.project-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: transform 0.4s ease;
}

.featured-card:hover .project-card-image img {
  transform: scale(1.035);
}

.project-card-details {
  padding-top: 22px;
}

.project-card-details h3 {
  margin-bottom: 8px;
  font-size: clamp(25px, 2.6vw, 36px);
  letter-spacing: -0.05em;
}

.project-card-details p {
  max-width: 440px;
  margin-bottom: 16px;

  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.project-card-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;

  transition: opacity 0.2s ease;
}

.featured-card:hover .project-card-link {
  opacity: 0.5;
}

.project-card-placeholder {
  display: grid;
  place-items: center;
  padding: 25px;
  text-align: center;
}

.project-card-placeholder span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
}

.placeholder-lillhamn {
  background: #dce8e5;
}

.placeholder-identitet {
  background: #e1e4dc;
}

.placeholder-webb {
  background: #e0e3e4;
}

/* =========================================
   STARTSIDA – PLAYGROUND
========================================= */

#playground {
  padding-top: 30px;
  padding-bottom: var(--space-section);
}

.playground-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 50px;

  margin-bottom: 50px;
}

.playground-header h2 {
  flex-shrink: 0;
}

.playground-header > p,
.playground-description {
  max-width: 400px;
  font-size: 17px;
  line-height: 1.65;
}

.playground-mosaic {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(25px, 4vw, 65px);
  align-items: start;
}

.playground-art {
  min-width: 0;
  margin: 0;
}

.playground-art-large {
  grid-column: 1;
}

.playground-art-small {
  grid-column: 2;
}

.playground-art-small:nth-child(2) {
  margin-top: 100px;
}

.playground-art-image {
  width: 100%;
  overflow: hidden;
  background: transparent;
}

.playground-art-large .playground-art-image {
  aspect-ratio: 4 / 5;
}

.playground-art-small .playground-art-image {
  aspect-ratio: 4 / 5;
}

.playground-art-wide .playground-art-image {
  aspect-ratio: 4 / 3;
}

.playground-art-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.playground-art:hover img {
  transform: scale(1.02);
}

.playground-art figcaption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 20px;

  padding-top: 15px;
  font-size: 15px;
}

.playground-art figcaption strong {
  font-weight: 600;
}

.playground-art figcaption span {
  color: var(--muted);
}

/* Dölj eventuella tomma platshållare */

.playground-art:has(.playground-empty) {
  display: none;
}

/* =========================================
   STARTSIDA – OM MIG
========================================= */

#om {
  padding-top: 30px;
  padding-bottom: var(--space-section);
}

.about-content,
.about-redesign {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}

.about-content h3,
.about-heading h3 {
  max-width: 650px;
  font-size: clamp(44px, 5.8vw, 82px);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.about-copy,
.about-text {
  max-width: 540px;
}

.about-copy p,
.about-text p {
  margin-bottom: 24px;
  font-size: var(--body-size);
  line-height: 1.75;
}

.about-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
}

.about-link:hover {
  opacity: 0.5;
}

/* =========================================
   STARTSIDA – KONTAKT
========================================= */

#kontakt {
  padding-top: 60px;
  padding-bottom: 140px;
}

.contact-top {
  display: none;
}

#kontakt h2 {
  margin-bottom: 50px;

  font-size: clamp(55px, 9vw, 140px);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

#kontakt h2 em {
  font-weight: 500;
}

.contact-email {
  display: inline-block;
  max-width: 100%;

  font-size: clamp(19px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.035em;

  overflow-wrap: anywhere;
  transition: opacity 0.2s ease;
}

.contact-email:hover {
  opacity: 0.5;
}

.contact-address {
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
}

/* =========================================
   FOOTER
========================================= */

footer {
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;

  padding: 35px var(--page-padding) 45px;
}

footer div {
  display: flex;
  gap: 25px;
}

footer p,
footer a {
  font-size: 14px;
}

footer a:hover {
  opacity: 0.5;
}

/* =========================================
   GEMENSAMT – ALLA PROJEKTSIDOR
========================================= */

.project-detail-main,
.fh-page {
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;

  padding:
    35px
    var(--page-padding)
    80px;
}

.project-detail-section {
  padding: 0;
}

.project-detail-main section,
.fh-page section {
  max-width: 100%;
}

.project-detail-main h1,
.fh-page h1 {
  font-size: var(--heading-xl);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.project-detail-main h2,
.fh-page h2 {
  font-size: var(--heading-md);
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.project-detail-main h3,
.fh-page h3 {
  letter-spacing: -0.05em;
}

.project-detail-main p,
.fh-page p {
  line-height: 1.7;
}

/* Gemensam slutnavigation utan streck */

.project-next {
  display: flex;
  justify-content: flex-end;
  align-items: center;

  margin-top: 80px;
  padding: 30px 0 0;
  border: 0;
}

.project-next > span {
  display: none;
}

.project-next a {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.045em;
}

.project-next a:hover {
  opacity: 0.5;
}

/* =========================================
   PODIUM – INTRO
========================================= */

.podium-project {
  width: 100%;
  margin-bottom: 50px;
}

.podium-header {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(35px, 6vw, 90px);
  align-items: end;

  margin-bottom: var(--space-large);
}

.podium-header h3 {
  font-size: var(--heading-xl);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.podium-intro {
  max-width: 500px;
  padding-bottom: 7px;
}

.podium-intro > p:first-child {
  font-size: var(--body-size);
  line-height: 1.7;
}

.podium-role {
  margin-top: 22px;
  color: var(--muted);
  font-size: 15px;
}

.podium-cover {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;
  padding: clamp(25px, 5vw, 70px);
  background: var(--surface);
}

.podium-cover img {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: contain;
}

/* =========================================
   PODIUM – PROJEKTFAKTA
========================================= */

.podium-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;

  margin-top: 35px;
  margin-bottom: var(--space-section);
  padding: 0;
  border: 0;
}

.podium-meta span {
  display: none;
}

.podium-meta p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

/* =========================================
   PODIUM – KONCEPT
========================================= */

.podium-concept {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(35px, 6vw, 90px);
  align-items: end;

  margin-bottom: var(--space-section);
}

.podium-concept h4 {
  font-size: var(--heading-md);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.podium-concept h4 span {
  display: block;
  font-style: italic;
  font-weight: 500;
}

.podium-concept p {
  max-width: 480px;
  font-size: var(--body-size);
}

/* =========================================
   PODIUM – FLIPBOOK
========================================= */

.podium-flipbook-section {
  width: 100%;
}

.flipbook-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;

  margin-bottom: 35px;
}

.flipbook-heading h4 {
  font-size: var(--heading-md);
}

.flipbook-instruction {
  max-width: 260px;
  color: var(--muted);
  font-size: 15px;
}

.flipbook-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;
  min-height: 650px;
  padding: 60px 20px;

  overflow: hidden;
  background: var(--surface);
}

#podium-book {
  margin-inline: auto;

  filter:
    drop-shadow(0 18px 20px rgba(0, 0, 0, 0.14));

  transition:
    transform 0.4s ease,
    filter 0.4s ease;
}

#podium-book.book-front {
  transform: translateX(-25%);
}

#podium-book.book-open {
  transform: translateX(0);
}

#podium-book.book-back {
  transform: translateX(25%);
}

.podium-page {
  overflow: hidden;
  background: white;
}

.podium-page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flipbook-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;

  margin-top: 28px;
}

.flipbook-controls button {
  display: grid;
  place-items: center;

  width: 52px;
  height: 52px;

  border: 0;
  border-radius: 50%;

  background: var(--text);
  color: var(--bg);

  font-size: 22px;
  cursor: pointer;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.flipbook-controls button:hover:not(:disabled) {
  transform: scale(1.06);
}

.flipbook-controls button:disabled {
  opacity: 0.25;
  cursor: default;
}

.page-counter {
  display: none;
}

/* =========================================
   LILLHAMN – SIDGRUND
========================================= */

.lillhamn-page {
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
}

.lillhamn-page img {
  max-width: 100%;
}

.lillhamn-page .back-link {
  margin: 0 0 clamp(45px, 6vw, 85px);
  font-size: 15px;
  text-decoration: none;
}

/* =========================================
   LILLHAMN – INTRO
========================================= */

.lillhamn-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;

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

.lillhamn-intro-text h1 {
  margin: 0 0 28px;
  font-size: var(--heading-xl);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.lillhamn-lead {
  margin-bottom: 20px;

  font-size: clamp(23px, 2.7vw, 34px);
  font-weight: 600;
  line-height: 1.25;
}

.lillhamn-description {
  max-width: 480px;
  font-size: var(--body-size);
}

.lillhamn-meta {
  display: none;
}

.lillhamn-hero {
  min-width: 0;
}

.lillhamn-hero img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* =========================================
   LILLHAMN – UPPDRAG
========================================= */

.lillhamn-story {
  display: block;
  padding: 0 0 var(--space-section);
  border: 0;
}

.lillhamn-story-content {
  max-width: 900px;
}

.lillhamn-story-content h2 {
  max-width: 800px;
  margin-bottom: 30px;

  font-size: var(--heading-md);
}

.lillhamn-story-content > p {
  max-width: var(--content-width);
  margin-bottom: 22px;

  font-size: var(--body-size);
}

.lillhamn-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 45px;

  margin-top: 35px;
}

.lillhamn-facts > div {
  padding: 0;
  border: 0;
}

.lillhamn-facts span {
  display: none;
}

.lillhamn-facts p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* =========================================
   LILLHAMN – KAMPANJ
========================================= */

.lillhamn-work {
  padding: 0 0 var(--space-section);
  border: 0;
}

.lillhamn-work-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;

  margin-bottom: 45px;
}

.lillhamn-work-heading h2 {
  font-size: var(--heading-md);
}

.lillhamn-work-heading > p {
  max-width: 320px;
  font-size: 16px;
}

.lillhamn-featured {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: clamp(35px, 6vw, 90px);
  align-items: center;

  margin-bottom: var(--space-large);
}

.lillhamn-featured > img {
  width: 100%;
  max-width: 650px;
  height: auto;

  object-fit: contain;
  border-radius: 0;
}

.lillhamn-featured-copy {
  display: block;
}

.lillhamn-featured-copy p {
  max-width: 420px;

  font-size: clamp(25px, 3.2vw, 42px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.lillhamn-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 25px);
}

.lillhamn-gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0;
}

.lillhamn-gallery img:nth-child(1),
.lillhamn-gallery img:nth-child(2) {
  grid-column: span 3;
}

.lillhamn-gallery img:nth-child(n + 3) {
  grid-column: span 2;
}

/* =========================================
   LILLHAMN – VIDEO
========================================= */

.lillhamn-reel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;

  padding: 0 0 var(--space-section);
  border: 0;
}

.lillhamn-reel-copy h2 {
  max-width: 650px;
  margin-bottom: 28px;
  font-size: var(--heading-md);
}

.lillhamn-reel-copy > p:not(.small-text) {
  max-width: 500px;
  font-size: var(--body-size);
}

.lillhamn-video {
  display: flex;
  justify-content: center;
}

.lillhamn-video video {
  width: 100%;
  max-width: 370px;
  aspect-ratio: 9 / 16;

  object-fit: contain;
  background: #111;
  border-radius: 0;
}

.lillhamn-end {
  display: block;
  padding: 0 0 40px;
  border: 0;
}

.lillhamn-end p {
  max-width: 700px;
  color: var(--muted);
  font-size: 15px;
}

.lillhamn-end a {
  display: inline-block;
  margin-top: 20px;
  font-size: 16px;
  font-weight: 600;
}

/* =========================================
   FONTÄNHUSET – SIDGRUND
========================================= */

.fh-page {
  color: var(--text);
}

.fh-wrap {
  width: 100%;
  max-width: var(--page-width);
  margin-inline: auto;
}

.fh-page section {
  padding: 0;
}

.fh-page img {
  display: block;
  max-width: 100%;
}

.fh-page h1,
.fh-page h2,
.fh-page h3 {
  line-height: 1.08;
  letter-spacing: -0.055em;
}

/* =========================================
   FONTÄNHUSET – INTRO
========================================= */

.fh-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;

  padding-bottom: var(--space-large) !important;
}

.fh-hero h1 {
  margin: 0 0 28px;

  font-size: clamp(58px, 8vw, 120px);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.fh-lead {
  max-width: 470px;

  font-size: clamp(23px, 2.7vw, 34px);
  font-weight: 600;
  line-height: 1.3;
}

.fh-muted {
  max-width: 470px;
  margin-top: 18px;

  color: var(--muted);
  font-size: var(--body-size);
}

.fh-hero-media {
  min-width: 0;
}

.fh-hero-media img {
  width: 100%;
  max-height: 550px;
  height: auto;
  object-fit: contain;
}

/* =========================================
   FONTÄNHUSET – PROJEKTFAKTA
========================================= */

.fh-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 25px;

  margin-bottom: var(--space-section);
  padding: 0;

  border: 0;
}

.fh-meta div {
  display: block;
}

.fh-meta span {
  display: none;
}

.fh-meta strong {
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
}

/* =========================================
   FONTÄNHUSET – UPPDRAG
========================================= */

.fh-overview {
  display: block;
  padding: 0 0 var(--space-section) !important;
  border: 0;
}

.fh-overview > div {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(35px, 6vw, 90px);
  align-items: end;
}

.fh-overview h2 {
  max-width: 850px;
  font-size: var(--heading-md);
}

.fh-overview > div p {
  max-width: 470px;
  font-size: var(--body-size);
}

/* =========================================
   FONTÄNHUSET – PROCESS
========================================= */

.fh-process {
  padding: 0 0 var(--space-section) !important;
}

.fh-section-heading {
  margin-bottom: var(--space-large);
}

.fh-section-heading h2 {
  font-size: var(--heading-md);
}

.fh-case {
  padding: 0 0 var(--space-large);
  border: 0;
}

.fh-case + .fh-case {
  padding-top: 25px;
}

.fh-case-top {
  display: block;
  margin-bottom: 30px;
}

.fh-case h3 {
  max-width: 750px;
  margin-bottom: 14px;

  font-size: clamp(28px, 3.4vw, 44px);
}

.fh-case-top p {
  max-width: 720px;
  color: var(--muted);
  font-size: var(--body-size);
}

/* =========================================
   FONTÄNHUSET – FÖRE OCH EFTER
========================================= */

.fh-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
}

.fh-pair figure {
  min-width: 0;
  margin: 0;
}

.fh-pair figure > span {
  display: block;
  margin-bottom: 12px;

  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-transform: none;
}

.fh-pair figure:last-child > span {
  color: var(--text);
}

.fh-image-frame {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;
  height: clamp(220px, 30vw, 390px);

  overflow: hidden;
  background: var(--surface);
  border-radius: 0;
}

.fh-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fh-nav-frame {
  height: clamp(160px, 20vw, 250px);
}

/* =========================================
   FONTÄNHUSET – RESULTAT
========================================= */

.fh-results {
  padding: 0 0 var(--space-section) !important;
  border: 0;
}

.fh-results-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(35px, 6vw, 90px);
  align-items: end;

  margin-bottom: 45px;
}

.fh-results h2 {
  font-size: var(--heading-md);
}

.fh-results-heading > p {
  max-width: 440px;
  font-size: var(--body-size);
}

.fh-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 25px);
}

.fh-gallery > a {
  display: block;
  min-width: 0;
}

.fh-preview {
  height: clamp(200px, 26vw, 340px);
  overflow: hidden;

  background: var(--surface);
  border: 0;
  border-radius: 0;
}

.fh-preview img {
  width: 100%;
  height: auto;

  transition: transform 0.35s ease;
}

.fh-gallery a:hover img {
  transform: translateY(-10px);
}

.fh-gallery a > span {
  display: flex;
  justify-content: space-between;
  gap: 10px;

  margin-top: 12px;
  font-size: 15px;
}

.fh-gallery b {
  font-weight: 400;
}

.fh-button {
  margin-top: 45px;
}

/* =========================================
   FONTÄNHUSET – AVSLUT
========================================= */

.fh-end {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;

  padding: 0 0 40px;
  border: 0;
}

.fh-end p {
  max-width: 720px;
  color: var(--muted);
  font-size: 15px;
}

.fh-end a {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.fh-end a:hover {
  opacity: 0.5;
}

/* =========================================
   VISUELL IDENTITET – NUVARANDE SIDA
========================================= */

.project-placeholder-page {
  padding: 0 0 var(--space-section);
}

.project-placeholder-page h1 {
  max-width: 1100px;
  margin-bottom: 30px;

  font-size: var(--heading-xl);
  line-height: 0.98;
}

.project-placeholder-description {
  max-width: 720px;
  margin-bottom: var(--space-large);

  font-size: clamp(19px, 2vw, 25px);
}

.project-page-image-placeholder {
  display: grid;
  place-items: center;

  width: 100%;
  min-height: 480px;
  margin-bottom: var(--space-large);
  padding: 30px;

  background: var(--surface);
  color: var(--muted);

  text-align: center;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
}

.project-placeholder-copy {
  max-width: var(--content-width);
}

.project-placeholder-copy h2 {
  margin: 65px 0 20px;
  font-size: var(--heading-md);
}

.project-placeholder-copy p {
  font-size: var(--body-size);
}

/* =========================================
   GEMENSAMMA BILDGALLERIER
   FÖR LINKAID OCH FRAMTIDA PROJEKT
========================================= */

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
}

.project-gallery img {
  display: block;
  width: 100%;
  height: auto;
}

.project-gallery .full-width {
  grid-column: 1 / -1;
}

.project-image {
  width: 100%;
  height: auto;
  margin-bottom: var(--space-medium);
}

.project-copy {
  max-width: var(--content-width);
  margin-bottom: var(--space-large);
}

.project-copy h2 {
  margin-bottom: 24px;
  font-size: var(--heading-md);
}

.project-copy p {
  margin-bottom: 20px;
  font-size: var(--body-size);
}

.project-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
  align-items: start;
}

.project-image-grid img {
  width: 100%;
  height: auto;
}

.project-feature-image {
  width: 100%;
  margin: var(--space-large) 0;
}

.project-feature-image img {
  width: 100%;
  height: auto;
}

/* =========================================
   RESPONSIV DESIGN – SURFPLATTA
========================================= */

@media (max-width: 1000px) {

  .podium-header,
  .podium-concept,
  .lillhamn-intro,
  .lillhamn-featured,
  .lillhamn-reel,
  .fh-hero,
  .fh-overview > div,
  .fh-results-heading {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .podium-intro,
  .lillhamn-description,
  .fh-muted,
  .fh-lead {
    max-width: 700px;
  }

  .podium-header {
    align-items: start;
  }

  .lillhamn-hero img,
  .fh-hero-media img {
    max-height: 600px;
    object-fit: contain;
  }

  .fh-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fh-overview > div {
    align-items: start;
  }

  .lillhamn-featured > img {
    max-width: 560px;
  }

  .lillhamn-video {
    justify-content: flex-start;
  }

  .playground-header {
    align-items: start;
    flex-direction: column;
    gap: 20px;
  }
}

/* =========================================
   RESPONSIV DESIGN – MOBIL
========================================= */

@media (max-width: 700px) {

  :root {
    --space-section: 85px;
    --space-large: 55px;
    --space-medium: 35px;

    --heading-xl: clamp(52px, 13vw, 85px);
    --heading-lg: clamp(42px, 10vw, 65px);
    --heading-md: clamp(32px, 8vw, 46px);
  }

  header,
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding-top: 25px;
    padding-bottom: 25px;
  }

  header nav,
  .site-header nav {
    justify-content: flex-start;
    gap: 12px 20px;
  }

  header nav a,
  .site-header nav a {
    font-size: 14px;
  }

  .hero {
    min-height: 70svh;
    padding-top: 70px;
    padding-bottom: 95px;
  }

  .hero h1 {
    margin-bottom: 30px;
  }

  .hero .intro {
    font-size: 18px;
  }

  #projekt,
  #playground,
  #om {
    padding-top: 30px;
    padding-bottom: 90px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    row-gap: 55px;
  }

  .project-card-image {
    aspect-ratio: 4 / 3;
  }

  .project-card-details {
    padding-top: 17px;
  }

  .playground-mosaic {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .playground-art-large,
  .playground-art-small,
  .playground-art-wide {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    margin: 0 !important;
  }

  .playground-art-large .playground-art-image,
  .playground-art-small .playground-art-image {
    aspect-ratio: 4 / 5;
  }

  .playground-art figcaption {
    font-size: 14px;
  }

  .about-content,
  .about-redesign {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-content h3,
  .about-heading h3 {
    font-size: clamp(44px, 10vw, 70px);
  }

  #kontakt {
    padding-top: 30px;
    padding-bottom: 95px;
  }

  #kontakt h2 {
    font-size: clamp(48px, 11vw, 80px);
    margin-bottom: 35px;
  }

  .contact-email {
    font-size: clamp(17px, 4.5vw, 25px);
  }

  .project-detail-main,
  .fh-page {
    padding-top: 25px;
    padding-bottom: 60px;
  }

  .back-link,
  .fh-back,
  .lillhamn-page .back-link {
    margin-bottom: 45px;
  }

  .podium-meta,
  .fh-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 25px;
  }

  .podium-cover {
    padding: 25px 15px;
  }

  .podium-concept {
    margin-bottom: 85px;
  }

  .flipbook-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .flipbook-wrapper {
    min-height: 460px;
    padding: 40px 8px;
  }

  .flipbook-controls button {
    width: 46px;
    height: 46px;
  }

  .lillhamn-intro {
    padding-bottom: 85px;
  }

  .lillhamn-story,
  .lillhamn-work,
  .lillhamn-reel {
    padding-bottom: 85px;
  }

  .lillhamn-work-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .lillhamn-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .lillhamn-gallery img:nth-child(n) {
    grid-column: auto;
  }

  .lillhamn-gallery img:last-child {
    grid-column: 1 / -1;
    width: min(100%, 420px);
    justify-self: center;
  }

  .lillhamn-featured {
    margin-bottom: 55px;
  }

  .lillhamn-featured-copy p {
    font-size: 26px;
  }

  .lillhamn-video {
    justify-content: center;
  }

  .lillhamn-video video {
    max-width: 320px;
  }

  .fh-hero {
    padding-bottom: 60px !important;
  }

  .fh-overview,
  .fh-process,
  .fh-results {
    padding-bottom: 85px !important;
  }

  .fh-pair {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .fh-image-frame {
    height: 280px;
  }

  .fh-nav-frame {
    height: 190px;
  }

  .fh-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px 15px;
  }

  .fh-preview {
    height: 250px;
  }

  .fh-gallery a > span {
    font-size: 13px;
  }

  .fh-end {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .project-gallery,
  .project-image-grid {
    grid-template-columns: 1fr;
  }

  .project-gallery .full-width {
    grid-column: auto;
  }

  .project-page-image-placeholder {
    min-height: 280px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
}

/* =========================================
   EXTRA SMÅ SKÄRMAR
========================================= */

@media (max-width: 400px) {

  .logo {
    font-size: 14px;
  }

  header nav,
  .site-header nav {
    gap: 10px 15px;
  }

  header nav a,
  .site-header nav a {
    font-size: 13px;
  }

  .hero h1 {
    font-size: 51px;
  }

  .fh-gallery {
    grid-template-columns: 1fr;
  }

  .fh-preview {
    height: 340px;
  }

  .podium-meta,
  .fh-meta {
    grid-template-columns: 1fr;
  }

  .flipbook-wrapper {
    min-height: 390px;
  }
}

/* =========================================
   TILLGÄNGLIGHET
========================================= */

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

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}




/* =========================================
   LINKAID – REDAKTIONELL PROJEKTSIDA
   Påverkar endast LinkAid
========================================= */

.linkaid-page {
  --la-gap: clamp(24px, 4vw, 64px);
}


/* =========================================
   SEKTIONER OCH TYPOGRAFI
========================================= */

.linkaid-page > section {
  margin: 0 0 clamp(90px, 10vw, 145px);
  padding: 0;
}

.linkaid-page h2 {
  margin: 0;
  font-size: clamp(38px, 4vw, 56px);
}

.linkaid-page p {
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.65;
}

.linkaid-page p + p {
  margin-top: 18px;
}


/* =========================================
   BILDER
========================================= */

/*
  Bilderna behåller sina naturliga proportioner.

  Inga fasta höjder.
  Inga färgade bildrutor.
  Ingen object-fit: contain.
*/

.linkaid-page .la-media {
  display: block;
  min-width: 0;
  margin: 0;
  background: transparent;
}

.linkaid-page .la-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: initial;
}


/* =========================================
   INTRODUKTION
========================================= */

.linkaid-page .la-intro {
  display: grid;
  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(0, 0.85fr);

  gap: var(--la-gap);
  align-items: end;

  margin-bottom: clamp(36px, 5vw, 65px);
}

.linkaid-page .la-intro h1 {
  margin: 0;
  font-size: clamp(72px, 10vw, 145px);
}

.linkaid-page .la-intro p {
  max-width: 480px;
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.42;
}


/* =========================================
   FÖRSTABILD
========================================= */

.linkaid-page .la-hero-photo {
  width: 100%;
  max-width: 100%;
}


/* =========================================
   UPPDRAGET
========================================= */

.linkaid-page .la-overview {
  display: grid;

  grid-template-columns:
    minmax(0, 0.85fr)
    minmax(0, 1.15fr);

  gap: var(--la-gap);
  align-items: start;
}

.linkaid-page .la-prose {
  max-width: 700px;
}


/* =========================================
   LOGOTYPEN
========================================= */

.linkaid-page .la-logo-section {
  display: grid;

  grid-template-columns:
    minmax(0, 0.95fr)
    minmax(0, 1.05fr);

  gap: var(--la-gap);
  align-items: center;
}

.linkaid-page .la-logo-copy h2 {
  margin-bottom: 26px;
}

.linkaid-page .la-logo-copy h3 {
  margin: 30px 0 14px;
  font-size: clamp(23px, 2.2vw, 31px);
}

.linkaid-page .la-logo-art {
  align-self: center;
}


/* =========================================
   GRAFISK MANUAL
========================================= */

.linkaid-page .la-manual-intro {
  display: grid;

  grid-template-columns:
    minmax(0, 0.85fr)
    minmax(0, 1.15fr);

  gap: var(--la-gap);
  align-items: start;

  margin-bottom: clamp(36px, 5vw, 65px);
}

/* Manualens omslag */

.linkaid-page .la-manual-cover {
  width: min(100%, 1050px);

  margin:
    0
    auto
    clamp(26px, 3.5vw, 52px);
}

/* Utvalda manualsidor */

.linkaid-page .la-manual-gallery {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: clamp(18px, 2.5vw, 36px);
  align-items: start;
}


/* =========================================
   WEBBPLATSEN
========================================= */

.linkaid-page .la-website {
  display: grid;

  grid-template-columns:
    minmax(0, 0.75fr)
    minmax(0, 1.25fr);

  gap: var(--la-gap);
  align-items: center;
}

.linkaid-page .la-website h2 {
  margin-bottom: 24px;
}


/* =========================================
   BILDBAKGRUNDER
========================================= */

.linkaid-page .la-website .la-media,
.linkaid-page .la-logo-art,
.linkaid-page .la-manual-cover {
  background: transparent;
}


/* =========================================
   RESPONSIV – SURFPLATTA
========================================= */

@media (max-width: 850px) {

  .linkaid-page .la-intro,
  .linkaid-page .la-overview,
  .linkaid-page .la-logo-section,
  .linkaid-page .la-manual-intro,
  .linkaid-page .la-website {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
  }

  .linkaid-page .la-logo-art {
    max-width: 680px;
  }

  .linkaid-page .la-intro {
    margin-bottom: 35px;
  }

}


/* =========================================
   RESPONSIV – MOBIL
========================================= */

@media (max-width: 600px) {

  .linkaid-page > section {
    margin-bottom: 85px;
  }

  .linkaid-page .la-intro h1 {
    font-size: clamp(62px, 15vw, 90px);
  }

  .linkaid-page .la-intro p {
    font-size: 19px;
  }

  .linkaid-page .la-manual-gallery {
    grid-template-columns: 1fr;
    gap: 20px;
  }

}
