/* ═══════════════════════════════════════════════
   Luxx Yarns Archive — Style
   Warm, organic, tactile. Like opening a memory box.
   ═══════════════════════════════════════════════ */

/* ── Local Fonts ── */
@font-face { font-family: 'Work Sans'; src: url('../fonts/WorkSans-300.woff2') format('woff2'), url('../fonts/WorkSans-300.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url('../fonts/WorkSans-400.woff2') format('woff2'), url('../fonts/WorkSans-400.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url('../fonts/WorkSans-500.woff2') format('woff2'), url('../fonts/WorkSans-500.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url('../fonts/WorkSans-600.woff2') format('woff2'), url('../fonts/WorkSans-600.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url('../fonts/WorkSans-Italic-300.woff2') format('woff2'), url('../fonts/WorkSans-Italic-300.ttf') format('truetype'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url('../fonts/WorkSans-Italic-400.woff2') format('woff2'), url('../fonts/WorkSans-Italic-400.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('../fonts/Caveat-Regular.woff2') format('woff2'), url('../fonts/Caveat-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('../fonts/Caveat-SemiBold.woff2') format('woff2'), url('../fonts/Caveat-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Serif Display'; src: url('../fonts/DMSerifDisplay-Regular.woff2') format('woff2'), url('../fonts/DMSerifDisplay-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Serif Display'; src: url('../fonts/DMSerifDisplay-Italic.woff2') format('woff2'), url('../fonts/DMSerifDisplay-Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --cream: #ffeadc;
  --peach: #fbc5ab;
  --teal: #6ba7bd;
  --navy: #001e42;
  --warm-white: #faf6f1;
  --warm-bg: #f5ede4;
  --warm-dark: #2d2926;
  --warm-mid: #6b5e54;
  --warm-light: #a89888;
  --amber: #c4956a;
  --soft-border: rgba(107, 94, 84, 0.12);
  --card-bg: rgba(255, 255, 255, 0.65);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
  font-family: 'Work Sans', -apple-system, sans-serif;
  font-weight: 400;
  color: var(--warm-dark);
  background: var(--warm-white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Grain texture overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.caveat { font-family: 'Caveat', cursive; }

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

/* ═══════════════════════════════════════════════
   Navigation
   ═══════════════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 2rem;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(250, 246, 241, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--soft-border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo img {
  opacity: 0;
  transition: opacity var(--transition);
}

.nav.scrolled .nav-logo img { opacity: 1; }

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--transition), opacity var(--transition);
  opacity: 0.85;
}

.nav-links a:hover { opacity: 1; }

.nav.scrolled .nav-links a { color: var(--warm-dark); }

.lang-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: border-color var(--transition);
}

.nav.scrolled .lang-toggle { border-color: var(--soft-border); }

.lang-option {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
  cursor: pointer;
}

.lang-option.active { color: white; }

.nav.scrolled .lang-option { color: var(--warm-light); }
.nav.scrolled .lang-option.active { color: var(--warm-dark); }

.lang-divider {
  color: rgba(255,255,255,0.3);
  font-size: 0.7rem;
}

.nav.scrolled .lang-divider { color: var(--warm-light); }

/* ═══════════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.6) 100%),
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
  position: relative;
  text-align: center;
  color: white;
  padding: 2rem;
  max-width: 700px;
}

.hero-logo {
  margin: 0 auto 1.5rem;
  opacity: 0;
  animation: fadeUp 1s 0.3s ease-out forwards;
}

.hero-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
  opacity: 0;
  animation: fadeUp 1s 0.5s ease-out forwards;
}

.hero-tagline {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-top: 0.5rem;
  opacity: 0;
  animation: fadeUp 1s 0.7s ease-out forwards;
}

.hero-tagline .caveat {
  font-weight: 400;
  font-style: italic;
}

.hero-years {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s 0.9s ease-out forwards;
  color: rgba(255,255,255,0.7);
}

.hero-notice {
  margin-top: 2rem;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  opacity: 0;
  animation: fadeUp 1s 1.1s ease-out forwards;
}

.hero-notice p {
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.9);
}

.hero-scroll {
  display: inline-block;
  margin-top: 2.5rem;
  color: rgba(255,255,255,0.6);
  animation: fadeUp 1s 1.3s ease-out forwards, bobble 3s 2.5s ease-in-out infinite;
  opacity: 0;
  transition: color 0.3s;
}

.hero-scroll:hover { color: white; }

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

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

/* ═══════════════════════════════════════════════
   Sections (shared)
   ═══════════════════════════════════════════════ */

.section { padding: 6rem 2rem; }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 1.5rem;
  color: var(--amber);
  margin-bottom: 0.25rem;
}

.section-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--warm-dark);
}

.section-intro {
  max-width: 600px;
  color: var(--warm-mid);
  font-weight: 300;
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   Color Divider
   ═══════════════════════════════════════════════ */

.color-divider {
  display: flex;
  height: 6px;
  overflow: hidden;
}

.color-strip {
  flex: 1;
  background: var(--c);
  transition: flex 0.5s ease;
}

.color-divider:hover .color-strip:hover { flex: 3; }

/* ═══════════════════════════════════════════════
   Story
   ═══════════════════════════════════════════════ */

.story { background: var(--warm-white); }

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: center;
}

.image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(45, 41, 38, 0.12),
    0 4px 16px rgba(45, 41, 38, 0.08);
  position: relative;
}

.image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.3);
  pointer-events: none;
}

.image-frame img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 6s ease-out;
}

.image-frame:hover img { transform: scale(1.03); }

.image-caption {
  text-align: center;
  margin-top: 1rem;
  font-size: 1.2rem;
  color: var(--warm-mid);
}

.story-quote {
  border: none;
  padding: 0;
  margin: 0 0 1.5rem;
  position: relative;
}

.story-quote::before {
  content: '\201C';
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 5rem;
  color: var(--peach);
  position: absolute;
  top: -2.5rem;
  left: -0.5rem;
  line-height: 1;
  opacity: 0.6;
}

.story-quote p {
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.8;
  color: var(--warm-dark);
  padding-left: 0.5rem;
}

.story-body {
  font-weight: 300;
  color: var(--warm-mid);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.8;
}

/* ═══════════════════════════════════════════════
   Yarns
   ═══════════════════════════════════════════════ */

.yarns { background: var(--warm-bg); }

.yarn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.yarn-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--soft-border);
  transition: transform var(--transition), box-shadow var(--transition);
  transition-delay: calc(var(--delay, 0) * 0.08s);
}

.yarn-card { cursor: pointer; }

.yarn-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(45, 41, 38, 0.1);
}

.yarn-image {
  aspect-ratio: 3/2;
  overflow: hidden;
}

.yarn-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease-out;
}

.yarn-card:hover .yarn-image img { transform: scale(1.05); }

.yarn-info { padding: 1.25rem 1.5rem 1.5rem; }

.yarn-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.35rem;
}

.yarn-rating {
  font-size: 0.78rem;
  color: var(--amber);
  margin-top: 0.15rem;
}
.yarn-rating .stars {
  letter-spacing: 0.05em;
}

.yarn-fiber {
  font-size: 0.82rem;
  color: var(--warm-mid);
  font-weight: 400;
}

.yarn-details {
  font-size: 0.78rem;
  color: var(--warm-light);
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-top: 0.2rem;
}

.yarn-weight-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(107, 167, 189, 0.1);
  border: 1px solid rgba(107, 167, 189, 0.2);
  border-radius: 20px;
  padding: 0.15rem 0.6rem;
  margin-top: 0.5rem;
}

.yarn-colors {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--soft-border);
  font-size: 1rem;
  color: var(--amber);
}

/* ═══════════════════════════════════════════════
   Yarn Modal
   ═══════════════════════════════════════════════ */

.yarn-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(45, 41, 38, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.yarn-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.yarn-modal-close {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: white;
  font-size: 2.2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
  line-height: 1;
  z-index: 210;
}

.yarn-modal-close:hover { opacity: 1; }

.yarn-modal-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
}

.yarn-modal-content {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  align-self: flex-start;
  transform: translateY(20px);
  transition: transform 0.4s ease-out;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  overflow: hidden;
}

.yarn-modal.active .yarn-modal-content {
  transform: translateY(0);
}

/* Gallery */
.yarn-modal-gallery {
  background: var(--warm-bg);
  padding: 0;
}

.yarn-modal-main-img {
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  position: relative;
}

.yarn-modal-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}

.yarn-modal-thumbs {
  display: flex;
  gap: 4px;
  padding: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--warm-light) transparent;
}

.yarn-modal-thumbs::-webkit-scrollbar { height: 4px; }
.yarn-modal-thumbs::-webkit-scrollbar-thumb { background: var(--warm-light); border-radius: 2px; }

.yarn-modal-thumb {
  flex: 0 0 72px;
  height: 54px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.6;
}

.yarn-modal-thumb:hover { opacity: 0.9; }
.yarn-modal-thumb.active { border-color: var(--amber); opacity: 1; }

.yarn-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Details */
.yarn-modal-details {
  padding: 2rem 2.5rem 2.5rem;
}

.yarn-modal-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--warm-dark);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.yarn-modal-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--warm-mid);
}

.yarn-modal-rating .stars {
  color: var(--amber);
  letter-spacing: 1px;
}

.yarn-modal-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  padding: 1.25rem;
  background: var(--warm-bg);
  border-radius: var(--radius);
}

.yarn-modal-spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.yarn-modal-spec-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-light);
}

.yarn-modal-spec-value {
  font-size: 0.95rem;
  color: var(--warm-dark);
  font-weight: 400;
}

.yarn-modal-notes {
  font-weight: 300;
  line-height: 1.9;
  color: var(--warm-mid);
  font-size: 1rem;
  margin-bottom: 1.75rem;
  white-space: pre-line;
}

.yarn-modal-colorways {
  margin-bottom: 1.75rem;
}

.yarn-modal-colorways-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-light);
  margin-bottom: 0.6rem;
}

.yarn-modal-colorway-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.yarn-modal-colorway-pill {
  display: inline-block;
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  color: var(--warm-dark);
  background: rgba(196, 149, 106, 0.1);
  border: 1px solid rgba(196, 149, 106, 0.25);
  border-radius: 20px;
  padding: 0.2rem 0.75rem;
  white-space: nowrap;
}

.yarn-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.yarn-modal-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.6rem 1.2rem;
  border-radius: 24px;
  transition: background 0.3s, color 0.3s;
}

.yarn-modal-link--primary {
  background: var(--warm-dark);
  color: white;
}

.yarn-modal-link--primary:hover {
  background: var(--amber);
}

.yarn-modal-link--secondary {
  background: transparent;
  color: var(--warm-dark);
  border: 1px solid var(--soft-border);
}

.yarn-modal-link--secondary:hover {
  border-color: var(--amber);
  color: var(--amber);
}

@media (max-width: 600px) {
  .yarn-modal-scroll { padding: 2rem 1rem; }
  .yarn-modal-details { padding: 1.5rem; }
  .yarn-modal-specs { grid-template-columns: 1fr; }
  .yarn-modal-thumb { flex: 0 0 56px; height: 42px; }
}

/* ═══════════════════════════════════════════════
   Inspirations Gallery
   ═══════════════════════════════════════════════ */

.inspirations { background: var(--warm-white); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 280px;
  gap: 1rem;
  grid-auto-flow: dense;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-item[data-size="tall"] { grid-row: span 2; }
.gallery-item[data-size="wide"] { grid-column: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease-out;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1.25rem 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
  color: white;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s;
}

.gallery-item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.1rem;
}

.gallery-yarn {
  font-size: 1rem;
  opacity: 0.8;
}

/* ═══════════════════════════════════════════════
   Journal
   ═══════════════════════════════════════════════ */

.journal { background: var(--warm-bg); }

.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.journal-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--soft-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.journal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(45, 41, 38, 0.1);
}

.journal-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.journal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease-out;
}

.journal-card:hover .journal-image img { transform: scale(1.05); }

.journal-content {
  padding: 1.25rem 1.5rem 1.5rem;
}

.journal-date {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: 0.4rem;
}

.journal-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
  color: var(--warm-dark);
}

.journal-excerpt {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--warm-mid);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.journal-card { cursor: pointer; }

.journal-read {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 1.05rem;
  color: var(--teal);
  transition: color 0.3s;
}

.journal-card:hover .journal-read { color: var(--amber); }

/* Journal Modal */
.journal-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(45, 41, 38, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.journal-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.journal-modal-close {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: white;
  font-size: 2.2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
  line-height: 1;
  z-index: 210;
}

.journal-modal-close:hover { opacity: 1; }

.journal-modal-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
}

.journal-modal-content {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  padding: 3rem;
  align-self: flex-start;
  transform: translateY(20px);
  transition: transform 0.4s ease-out;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}

.journal-modal.active .journal-modal-content {
  transform: translateY(0);
}

.journal-modal-date {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: 0.5rem;
}

.journal-modal-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--warm-dark);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.journal-modal-body {
  font-weight: 300;
  line-height: 1.9;
  color: var(--warm-mid);
  font-size: 1.02rem;
}

.journal-modal-body p {
  margin-bottom: 1rem;
}

.journal-modal-gallery {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.journal-modal-gallery img {
  width: 100%;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.3s;
}

.journal-modal-gallery img:hover {
  transform: scale(1.03);
}

/* ═══════════════════════════════════════════════
   Videos
   ═══════════════════════════════════════════════ */

.videos { background: var(--navy); color: white; }
.videos .section-label { color: var(--peach); }
.videos .section-title { color: white; }
.videos .section-intro { color: rgba(255,255,255,0.6); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.video-card {
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition);
}

.video-card:hover { transform: translateY(-4px); }

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
}

.video-card:hover .video-play {
  opacity: 1;
  transform: scale(1.1);
}

/* ═══════════════════════════════════════════════
   Timeline
   ═══════════════════════════════════════════════ */

.timeline {
  background: var(--warm-bg);
}

.timeline .section-label { text-align: center; }

.timeline-track {
  position: relative;
  max-width: 700px;
  margin: 3rem auto 0;
  padding-left: 3rem;
}

.timeline-line {
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--peach), var(--amber), var(--teal));
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2.55rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--amber);
  border: 3px solid var(--warm-bg);
  box-shadow: 0 0 0 2px var(--amber);
}

.timeline-year {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.5rem;
  color: var(--warm-dark);
  margin-bottom: 0.25rem;
}

.timeline-text {
  font-weight: 300;
  color: var(--warm-mid);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════ */

.footer {
  background: var(--warm-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 2rem;
  text-align: center;
}

.footer-inner { max-width: 600px; margin: 0 auto; }

.footer-logo {
  margin: 0 auto 1rem;
  opacity: 0.8;
}

.footer-brand {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.3rem;
  color: white;
}

.footer-location {
  font-size: 1.2rem;
  color: var(--peach);
  margin-top: 0.25rem;
}

.footer-years {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  font-weight: 500;
  margin-top: 0.5rem;
  color: rgba(255,255,255,0.4);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--peach); }

.footer-impressum {
  margin: 0.6rem 0 0;
}

.footer .footer-impressum a,
.footer .footer-impressum a:visited,
.footer .footer-impressum a:link {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.footer .footer-impressum a:hover {
  color: rgba(255,255,255,0.5);
}

.impressum-details {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.5;
}

.impressum-details p {
  margin: 0;
}

.footer-note {
  font-size: 0.8rem;
  font-style: italic;
  color: rgba(255,255,255,0.3);
}

/* ═══════════════════════════════════════════════
   Lightbox
   ═══════════════════════════════════════════════ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
  padding: 2rem;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
  line-height: 1;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  transform: scale(0.95);
  transition: transform 0.4s ease-out;
}

.lightbox.active .lightbox-img { transform: scale(1); }

/* Video Modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
  padding: 2rem;
}

.video-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
  line-height: 1;
  z-index: 10;
}

.video-modal-close:hover { opacity: 1; }

.video-modal-content {
  width: 90vw;
  max-width: 960px;
  aspect-ratio: 16/9;
}

/* ═══════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════ */

@media (max-width: 900px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .story-image { max-width: 400px; margin: 0 auto; }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .gallery-item[data-size="wide"] { grid-column: span 1; }

  .nav-links { gap: 1rem; }
}

@media (max-width: 600px) {
  .section { padding: 4rem 1.25rem; }

  .nav { padding: 0 1rem; }
  .nav-links { display: none; }

  .hero-notice { padding: 1rem 1.25rem; }
  .hero-notice p { font-size: 0.85rem; }

  .yarn-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

  .gallery-item[data-size="tall"] { grid-row: span 1; }
  .gallery-item figcaption { opacity: 1; transform: translateY(0); }

  .journal-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

  .video-grid { grid-template-columns: 1fr; }

  .timeline-track { padding-left: 2.5rem; }
}
