/* ==========================================================================
   Hanslik & Hartmann — Handwerker mit der Liebe zum Holz
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #f7f2e9;
  --bg-soft: #efe6d5;
  --card: #fffdf8;
  --ink: #201810;
  --ink-soft: #5c4f41;
  --ink-faint: #8a7c6c;
  --wood: #a8713e;
  --wood-dark: #7c4f28;
  --wood-light: #d3a06c;
  --line: rgba(32, 24, 16, 0.12);
  --shadow-lg: 0 30px 70px -25px rgba(32, 24, 16, 0.4);
  --shadow-sm: 0 10px 25px -12px rgba(32, 24, 16, 0.3);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1240px;
  --nav-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--wood-dark);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--wood);
  display: inline-block;
}
.eyebrow.light { color: var(--wood-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.9rem;
  border-radius: 2px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--wood-dark); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-light { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-arrow { transition: transform 0.25s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-small { padding: 0.65rem 1.3rem; font-size: 0.82rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(14,10,6,0.55) 0%, rgba(14,10,6,0) 100%);
  transition: background 0.35s ease, box-shadow 0.35s ease, height 0.3s ease;
}
.site-header.scrolled {
  background: rgba(247, 242, 233, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  height: 72px;
}
.header-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--page-nav-color, #fff);
  letter-spacing: -0.01em;
  transition: color 0.35s ease;
}
.site-header.scrolled .logo { color: var(--ink); }
.logo .amp { color: var(--wood-light); font-style: italic; margin: 0 0.08em; }
.site-header.scrolled .logo .amp { color: var(--wood); }

.main-nav { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.4rem); }
.main-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--page-nav-color, rgba(255,255,255,0.88));
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.35s ease;
}
.site-header.scrolled .main-nav a { color: var(--ink-soft); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transition: right 0.3s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { right: 0; }
.main-nav a.active { color: var(--wood-light); }
.site-header.scrolled .main-nav a.active { color: var(--wood-dark); }

.header-cta.btn-light { border-color: rgba(255,255,255,0.6); color: var(--page-nav-color, #fff); background: rgba(20,14,9,0.28); }
.site-header.scrolled .header-cta { border-color: var(--ink); color: var(--ink); background: transparent; }
.site-header.scrolled .header-cta:hover { background: var(--ink); color: var(--bg); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--page-nav-color, #fff);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}
.site-header.scrolled .nav-toggle span,
.nav-toggle.open span { background: var(--ink); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Pages with a light hero use dark nav text from the start */
body.nav-on-light .site-header:not(.scrolled) { --page-nav-color: var(--ink); }
body.nav-on-light .site-header:not(.scrolled) .logo .amp { color: var(--wood); }
body.nav-on-light .site-header:not(.scrolled) .nav-toggle span { background: var(--ink); }
body.nav-on-light .site-header:not(.scrolled) .header-cta { border-color: var(--ink); color: var(--ink); }

@media (max-width: 860px) {
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.2rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.3s ease;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { color: var(--ink) !important; font-size: 1.4rem; font-family: var(--serif); }
  .main-nav a::after { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,13,9,0.35) 0%, rgba(18,13,9,0.35) 35%, rgba(18,13,9,0.92) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 2rem) clamp(1.25rem, 4vw, 3rem) clamp(3.5rem, 9vw, 6.5rem);
}
.hero-content.narrow { max-width: 760px; }
.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 5rem);
  color: #fff;
  max-width: 14ch;
  margin-bottom: 0.5rem;
}
.hero-lede {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.86);
  max-width: 540px;
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-meta {
  margin-top: 3rem;
  display: flex;
  gap: clamp(1.5rem, 4vw, 3.2rem);
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1.6rem;
}
.hero-meta div { display: flex; flex-direction: column; gap: 0.2rem; }
.hero-meta strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; }
.hero-meta span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.65); }

.scroll-cue {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: 2rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 46px;
  background: linear-gradient(rgba(255,255,255,0.9), transparent);
  animation: scrollcue 2.2s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Smaller page header (non-homepage) */
.page-header {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.page-header .hero-bg { background-attachment: fixed; }
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,13,9,0.45) 0%, rgba(18,13,9,0.88) 100%);
  z-index: 1;
}
.page-header-content {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto; width: 100%;
  padding: calc(var(--nav-h) + 2rem) clamp(1.25rem, 4vw, 3rem) 3.5rem;
}
.page-header h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 18ch; }
.page-header p { color: rgba(255,255,255,0.82); max-width: 46ch; font-size: 1.05rem; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: var(--bg); }
.section-dark p { color: rgba(247,242,233,0.72); }
.section-dark h2, .section-dark h3 { color: var(--bg); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0; max-width: 16ch; }
.section-head p { max-width: 40ch; margin: 0; }

/* ---------- Intro / two-col ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: var(--shadow-lg);
}
.split-media.landscape img { aspect-ratio: 5 / 4; }
.split-media .float-card {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--card);
  padding: 1.3rem 1.6rem;
  border-radius: 3px;
  box-shadow: var(--shadow-sm);
  max-width: 230px;
}
.float-card strong { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--wood-dark); }
.float-card span { font-size: 0.82rem; color: var(--ink-soft); }

.split-body h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.lede { font-size: 1.12rem; color: var(--ink); }

/* ---------- Value / feature grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }

.value-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2.2rem 1.9rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); border-color: transparent; }
.value-card .icon {
  width: 46px; height: 46px;
  margin-bottom: 1.3rem;
  color: var(--wood);
}
.value-card .icon svg { width: 100%; height: 100%; }
.value-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.value-card p { margin: 0; font-size: 0.94rem; }
.value-index { font-family: var(--serif); font-size: 0.85rem; color: var(--wood-light); display:block; margin-bottom: 0.8rem; }

/* number index style for process */
.process { counter-reset: step; }
.process-step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.6rem;
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.process-step:last-child { border-bottom: 1px solid var(--line); }
.process-num { font-family: var(--serif); font-size: 2.6rem; color: var(--wood-light); font-weight: 500; }
.process-step h3 { margin-bottom: 0.4rem; font-size: 1.25rem; }
.process-step p { margin: 0; max-width: 60ch; }

/* ---------- Image strip / gallery ---------- */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.gallery-strip img, .gallery-strip .gimg {
  width: 100%; height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.gallery-strip a:nth-child(2), .gallery-strip a:nth-child(3) { margin-top: 2.2rem; }

/* ---------- Featured work grid (home) ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.work-card {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 4/5;
  display: block;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.work-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.work-card:hover img { transform: scale(1.08); }
.work-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,15,10,0) 40%, rgba(20,15,10,0.85) 100%);
}
.work-card-label {
  position: absolute; left: 1.3rem; right: 1.3rem; bottom: 1.3rem; z-index: 2; color: #fff;
}
.work-card-label .tag {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--wood-light);
  display: block; margin-bottom: 0.35rem;
}
.work-card-label h3 { color: #fff; font-size: 1.25rem; margin: 0; }

/* ---------- Portfolio grid (full page) ---------- */
.filter-bar { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 3rem; }
.filter-btn {
  border: 1px solid var(--line);
  background: transparent;
  padding: 0.6rem 1.3rem;
  border-radius: 30px;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.25s ease;
}
.filter-btn:hover { border-color: var(--wood); color: var(--wood-dark); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}
.portfolio-item { grid-column: span 2; }
.portfolio-item.tall { grid-row: span 2; }
.portfolio-item.wide { grid-column: span 2; }
.portfolio-item.feature { grid-column: span 4; }
.portfolio-item.feature .portfolio-card { aspect-ratio: 21 / 9; min-height: 0; }
.portfolio-card {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.portfolio-card:focus-visible {
  outline: 2px solid var(--wood);
  outline-offset: 3px;
}
.photo-count {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(20,15,10,0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border-radius: 30px;
  letter-spacing: 0.02em;
  transition: background 0.25s ease;
}
.photo-count svg { width: 14px; height: 14px; }
.portfolio-card:hover .photo-count { background: var(--wood-dark); }
.portfolio-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(.2,.7,.2,1); }
.portfolio-card:hover img { transform: scale(1.08); }
.portfolio-card::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(20,15,10,0) 45%, rgba(20,15,10,0.88) 100%); }
.portfolio-info { position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1.3rem; z-index: 2; color: #fff; }
.portfolio-info .tag {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--wood-light);
  display: block; margin-bottom: 0.4rem;
}
.portfolio-info h3 { color: #fff; font-size: 1.3rem; margin: 0 0 0.3rem; }
.portfolio-info .pnum {
  position: absolute; top: -2.6rem; right: 0; font-family: var(--serif); font-size: 0.95rem; color: rgba(255,255,255,0.7);
}
.portfolio-info p { color: rgba(255,255,255,0.78); font-size: 0.88rem; margin: 0; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.4rem; }
.team-card {
  background: var(--card);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.team-photo { aspect-ratio: 4/3; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-body { padding: 1.9rem 2rem 2.2rem; }
.team-body .role { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--wood-dark); font-weight: 600; margin-bottom: 0.3rem; }
.team-body h3 { font-size: 1.5rem; margin-bottom: 0.15rem; }
.team-body .age { font-size: 0.88rem; color: var(--ink-faint); margin-bottom: 1rem; display: block; }

/* ---------- Quote / cooperation banner ---------- */
.coop-banner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  background: var(--bg-soft);
  border-radius: 4px;
  padding: clamp(2.2rem, 5vw, 3.6rem);
}
.coop-banner img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; aspect-ratio: 4/3; }
.coop-features { margin-top: 2.5rem; }

blockquote.pull-quote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}
blockquote.pull-quote cite { display: block; margin-top: 1.2rem; font-family: var(--sans); font-style: normal; font-size: 0.88rem; color: var(--ink-faint); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--bg);
  border-radius: 4px;
  padding: clamp(3rem, 7vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); max-width: 20ch; margin: 0 auto 1rem; }
.cta-band p { color: rgba(247,242,233,0.72); max-width: 46ch; margin: 0 auto 2.2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.mail-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(2rem, 4vw, 3rem);
}
.mail-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.mail-link:first-of-type { padding-top: 0; }
.mail-link:last-of-type { border-bottom: none; }
.mail-link .ml-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-faint); display: block; margin-bottom: 0.3rem; }
.mail-link .ml-value { font-family: var(--serif); font-size: clamp(1.15rem, 2.6vw, 1.6rem); }
.mail-link .ml-arrow { font-size: 1.4rem; color: var(--wood); transition: transform 0.25s ease; flex-shrink: 0; }
.mail-link:hover .ml-arrow { transform: translateX(6px); }

.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: none; }
.info-list .il-icon { width: 22px; height: 22px; color: var(--wood); flex-shrink: 0; margin-top: 0.1rem; }
.info-list .il-icon svg { width: 100%; height: 100%; }
.info-list strong { display: block; font-size: 0.95rem; }
.info-list span { font-size: 0.9rem; color: var(--ink-soft); }

.social-row { display: flex; gap: 0.8rem; margin-top: 1.8rem; }
.social-row a {
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.25s ease;
}
.social-row a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.social-row svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(247,242,233,0.75); padding: clamp(3.5rem, 7vw, 5.5rem) 0 0; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(247,242,233,0.12);
}
.footer-brand .logo { color: #fff; font-size: 1.4rem; }
.footer-brand .logo .amp { color: var(--wood-light); }
.footer-brand p { margin-top: 0.8rem; max-width: 30ch; color: rgba(247,242,233,0.6); }
.footer-col h4 { color: #fff; font-family: var(--sans); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 1.1rem; font-weight: 600; }
.footer-col { display: flex; flex-direction: column; gap: 0.65rem; font-size: 0.92rem; }
.footer-col a { text-decoration: none; color: rgba(247,242,233,0.75); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--wood-light); }
.footer-bottom {
  max-width: var(--maxw); margin: 0 auto;
  padding: 1.6rem clamp(1.25rem, 4vw, 3rem) 2rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.8rem; color: rgba(247,242,233,0.45);
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.is-visible { transition-delay: 0.1s; }
.reveal-delay-2.is-visible { transition-delay: 0.2s; }
.reveal-delay-3.is-visible { transition-delay: 0.3s; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 11, 7, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-stage {
  position: relative;
  max-width: min(1100px, 90vw);
  max-height: 68vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-stage img {
  max-width: 100%;
  max-height: 68vh;
  width: auto;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.lightbox-stage img.is-visible { opacity: 1; transform: scale(1); }
.lightbox-info {
  max-width: 640px;
  width: 100%;
  text-align: center;
  color: #fff;
  margin-top: 1.6rem;
}
.lightbox-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--wood-light);
  display: block;
  margin-bottom: 0.5rem;
}
.lightbox-info h3 { color: #fff; font-size: 1.4rem; margin-bottom: 0.4rem; }
.lightbox-info p { color: rgba(255,255,255,0.72); font-size: 0.92rem; margin-bottom: 0.6rem; }
.lightbox-counter { font-size: 0.78rem; color: rgba(255,255,255,0.5); letter-spacing: 0.04em; }

.lightbox-close, .lightbox-nav {
  position: fixed;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
  z-index: 1001;
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--wood-dark); }
.lightbox-close {
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 44px; height: 44px;
}
.lightbox-close svg { width: 18px; height: 18px; }
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
}
.lightbox-nav:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-nav svg { width: 22px; height: 22px; }
.lightbox-nav.prev { left: clamp(0.75rem, 3vw, 2rem); }
.lightbox-nav.next { right: clamp(0.75rem, 3vw, 2rem); }

@media (max-width: 700px) {
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-nav.prev { left: 0.5rem; }
  .lightbox-nav.next { right: 0.5rem; }
  .lightbox-stage { max-height: 52vh; }
  .lightbox-stage img { max-height: 52vh; }
  .lightbox-info h3 { font-size: 1.15rem; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .split, .coop-banner, .contact-grid { grid-template-columns: 1fr; }
  .split-media { order: -1 !important; }
  .grid-3, .grid-4, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-grid a:first-child { grid-column: span 2; aspect-ratio: 16/9; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-item, .portfolio-item.wide { grid-column: span 2; }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 620px) {
  .grid-3, .grid-4, .team-grid, .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .process-step { grid-template-columns: 56px 1fr; }
  .process-num { font-size: 1.9rem; }
  .hero-meta { gap: 1.6rem; }
  .coop-banner { padding: 1.8rem; }
  .float-card { position: static; margin-top: 1rem; max-width: none; }
}
