/* ============================================================
   MediaBorg — Portfolio Stylesheet
   Seesteinen, kirkas ja elegantti
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Outfit:wght@200;300;400;500&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --bg:          #f5f3ef;
  --bg-alt:      #edeae4;
  --surface:     #ffffff;
  --border:      #ddd9d2;
  --border-soft: #e8e5df;
  --muted:       #b0ab9f;
  --text-dim:    #7a7570;
  --text:        #3d3a35;
  --text-dark:   #1a1815;
  --accent:      #3b6e8c;
  --accent-dim:  #2a5069;
  --accent-pale: rgba(59,110,140,0.08);
  --accent-mid:  rgba(59,110,140,0.15);
  --font-display:'Cormorant Garamond', Georgia, serif;
  --font-body:   'Outfit', sans-serif;
  --nav-h:       68px;
  --trans:       0.3s cubic-bezier(0.4,0,0.2,1);
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.08);
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Navigation ─────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border);
  background: rgba(245,243,239,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-dark);
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.5rem);
  list-style: none;
}

.nav-links a {
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color var(--trans);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--trans);
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--text);
  transition: var(--trans);
}

/* ── Pages ──────────────────────────────────────────────────── */
.page {
  display: none;
  min-height: 100vh;
  padding-top: var(--nav-h);
  animation: fadeIn 0.45s ease forwards;
}

.page.active { display: block; }

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

/* ── Hero Section ────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 20% 50%, rgba(59,110,140,0.06) 0%, transparent 65%),
    var(--bg);
  pointer-events: none;
}

/* ── Hero left: text ── */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 6vw, 7rem);
  flex: 0 0 50%;
  max-width: 50%;
}

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-eyebrow::before {
  content: '';
  width: 36px; height: 1px;
  background: var(--accent);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 8rem);
  font-weight: 300;
  line-height: 0.95;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  position: relative;
  margin-bottom: 0.4rem;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-title .line2 {
  display: block;
  margin-left: clamp(1.5rem, 4vw, 6rem);
}

.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.8vw, 1.45rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-dim);
  margin: 2rem 0 3rem;
  max-width: 460px;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 2.2rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: var(--trans);
  position: relative;
  overflow: hidden;
  background: transparent;
}

.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-pale);
  transform: translateX(-100%);
  transition: transform var(--trans);
}

.hero-cta:hover::before { transform: translateX(0); }
.hero-cta svg { width: 14px; height: 14px; flex-shrink: 0; position: relative; }

/* ── Hero right: slideshow ── */
.hero-slideshow {
  flex: 0 0 50%;
  max-width: 50%;
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  transition: transform 6s ease;
}

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

/* Ken Burns subtle zoom effect */
.hero-slide:not(.active) img { transform: scale(1.04); }

/* Slide dots */
.hero-slide-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.hero-dot {
  width: 28px; height: 2px;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: background var(--trans), width var(--trans);
  padding: 0;
  border-radius: 1px;
}

.hero-dot.active {
  background: rgba(255,255,255,0.95);
  width: 44px;
}

/* Progress bar */
.hero-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,0.15);
  z-index: 10;
}

.hero-progress-bar {
  height: 100%;
  width: 0%;
  background: rgba(255,255,255,0.7);
}

/* Overlay gradient on slideshow for elegance */
.hero-slideshow::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,  rgba(245,243,239,0.18) 0%, transparent 15%),
    linear-gradient(to top,    rgba(26,24,21,0.35) 0%, transparent 40%);
  z-index: 1;
  pointer-events: none;
}

.hero-slide-dots, .hero-progress { z-index: 2; }
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Section Label ───────────────────────────────────────────── */
.section-label {
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 100px;
}

/* ── Story Section ───────────────────────────────────────────── */
.story {
  padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 8vw, 8rem);
  max-width: 1200px;
  margin: 0 auto;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.story-heading {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  font-weight: 300;
  line-height: 1.12;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.story-heading em {
  display: block;
  font-style: italic;
  color: var(--accent);
}

.story-body p {
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.9;
}

.story-body p:first-child {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.55;
}

.story-body p strong { color: var(--accent-dim); font-weight: 500; }

.story-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 3rem;
  background: var(--border);
  border: 1px solid var(--border);
}

.stat-item {
  padding: 2rem 1.2rem;
  background: var(--surface);
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.67rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── Services Strip ──────────────────────────────────────────── */
.services {
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 8vw, 8rem);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  background: var(--surface);
}

.service-item {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border-soft);
  transition: background var(--trans);
}

.service-item:last-child { border-right: none; }
.service-item:hover { background: var(--accent-pale); }

.service-icon {
  width: 32px; height: 32px;
  margin-bottom: 1.2rem;
  color: var(--accent);
}

.service-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.service-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ── Page Header ─────────────────────────────────────────────── */
.page-header {
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 8vw, 8rem) 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1;
  letter-spacing: -0.02em;
}

.page-title em { font-style: italic; color: var(--accent); }

.page-subtitle {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.8rem;
}

/* ── Video Page ──────────────────────────────────────────────── */
.video-section {
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 8vw, 8rem);
}

.video-intro { max-width: 600px; margin-bottom: 2.5rem; }

.video-intro p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.video-wrapper iframe { width: 100%; height: 100%; border: none; }

.video-caption {
  margin-top: 1.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.video-caption::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

/* ── Portfolio Page ──────────────────────────────────────────── */
.portfolio-section {
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 8vw, 8rem);
}

.carousel-container { position: relative; overflow: hidden; width: 100%; }

.carousel-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 1.5rem;
}

.carousel-slide {
  flex: 0 0 calc(50% - 0.75rem);
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.carousel-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide:hover img { transform: scale(1.04); }

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,24,21,0.72) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
  opacity: 0;
  transition: opacity var(--trans);
}

.carousel-slide:hover .slide-overlay { opacity: 1; }

.slide-num {
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  color: rgba(245,243,239,0.7);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.slide-label {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 300;
  color: #f5f3ef;
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 2rem;
}

.carousel-btn {
  width: 46px; height: 46px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-pale);
}

.carousel-btn svg { width: 17px; height: 17px; }

.carousel-dots {
  display: flex;
  gap: 0.45rem;
  flex: 1;
  align-items: center;
}

.dot {
  width: 22px; height: 1.5px;
  background: var(--border);
  transition: var(--trans);
  cursor: pointer;
  border: none;
}

.dot.active { background: var(--accent); width: 36px; }

.carousel-counter {
  font-size: 0.73rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  flex-shrink: 0;
}

/* ── About Page ──────────────────────────────────────────────── */
.about-section {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 8vw, 8rem);
  max-width: 1100px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
  margin-bottom: 4rem;
}

.about-portrait {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.about-portrait-frame {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
}

.portrait-placeholder svg { width: 48px; height: 48px; opacity: 0.4; }

.portrait-placeholder span {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.5;
}

.about-portrait-label {
  margin-top: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.about-text h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 2rem;
}

.about-text h3 em { font-style: italic; color: var(--accent); }

.about-text p {
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  color: var(--text);
  margin-bottom: 1.4rem;
  line-height: 1.9;
}

.about-text p:first-of-type {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.6;
}

.about-text strong { color: var(--accent-dim); font-weight: 500; }

/* Skills list */
.skills-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 2.5rem;
  background: var(--border);
  border: 1px solid var(--border);
}

.skill-item {
  background: var(--surface);
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.skill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.skill-item span {
  font-size: 0.82rem;
  color: var(--text);
  letter-spacing: 0.04em;
}

/* ── Hinnasto Page ───────────────────────────────────────────── */
.pricing-section {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 8vw, 8rem);
}

.pricing-intro {
  max-width: 580px;
  margin-bottom: 3.5rem;
}

.pricing-intro p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--trans), transform var(--trans);
}

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

.pricing-card.featured {
  border-color: var(--accent);
  background: var(--surface);
}

.pricing-card.featured::before {
  content: 'Suosituin';
  position: absolute;
  top: -1px; right: 1.5rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  font-family: var(--font-body);
  font-weight: 400;
}

.pricing-category {
  font-size: 0.67rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.pricing-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 300;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.pricing-price-note {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 1.8rem;
}

.pricing-divider {
  height: 1px;
  background: var(--border-soft);
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.pricing-features li {
  font-size: 0.85rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  line-height: 1.5;
}

.pricing-features li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 0.45em;
  flex-shrink: 0;
}

.pricing-btn {
  display: block;
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  background: transparent;
  transition: var(--trans);
}

.pricing-btn:hover,
.pricing-card.featured .pricing-btn {
  background: var(--accent);
  color: #fff;
}

.pricing-card.featured .pricing-btn:hover {
  background: var(--accent-dim);
}

.pricing-note {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  max-width: 680px;
}

.pricing-note-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.pricing-note-icon svg { width: 20px; height: 20px; }

.pricing-note p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.75;
}

.pricing-note strong { color: var(--text); font-weight: 400; }

/* ── Contact Strip ───────────────────────────────────────────── */
.contact-strip {
  margin: clamp(3.5rem, 7vw, 6rem) clamp(1.5rem, 8vw, 8rem);
  padding: clamp(2rem, 4.5vw, 3.5rem);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.contact-text h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.contact-text h3 em { font-style: italic; color: var(--accent); }
.contact-text p { font-size: 0.84rem; color: var(--text-dim); }

.contact-btn {
  padding: 0.85rem 2.2rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: transparent;
  display: inline-block;
  transition: var(--trans);
  white-space: nowrap;
}

.contact-btn:hover { background: var(--accent); color: #fff; }

/* ── Lightbox ────────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(26,24,21,0.92);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.lightbox.open { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans);
}

.lightbox-close:hover { color: #fff; border-color: rgba(255,255,255,0.5); }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.8rem clamp(1.5rem, 8vw, 8rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--surface);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-dim);
}

.footer-logo span { color: var(--accent); }
.footer-copy { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.05em; }

/* ── Mobile Menu ─────────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(245,243,239,0.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  backdrop-filter: blur(20px);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--text-dim);
  transition: color var(--trans);
}

.mobile-menu a:hover { color: var(--accent); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .story-grid, .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .story-heading, .about-portrait { position: static; }
  .carousel-slide { flex: 0 0 100%; }
  .hero-line { display: none; }
  .skills-list { grid-template-columns: 1fr; }
  .hero { flex-direction: row; min-height: calc(100vh - var(--nav-h)); }
  .hero-content { flex: 0 0 50%; max-width: 50%; padding: clamp(1.5rem,4vw,3rem) clamp(1rem,3vw,2.5rem); }
  .hero-slideshow { flex: 0 0 50%; max-width: 50%; min-height: 100%; }
  .hero-title { font-size: clamp(2rem,6vw,4rem); }
  .hero-sub { font-size: clamp(0.8rem,1.8vw,1.1rem); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .services { grid-template-columns: 1fr; }
  .service-item { border-right: none; border-bottom: 1px solid var(--border-soft); }
  .service-item:last-child { border-bottom: none; }
  .story-stats { grid-template-columns: 1fr; }
  .contact-strip { flex-direction: column; align-items: flex-start; }
  footer { flex-direction: column; align-items: flex-start; }
  .pricing-grid { grid-template-columns: 1fr; }
  .valm-text .hero-sub { font-size: 1rem; line-height: 1.7; }
}

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
