/* ── OUTGETTINGSUBS – base.css ── */
:root {
  --bg: #ffffff;
  --text: #0a0a0a;
  --muted: #999;
  --border: #e0e0e0;
  --border-dark: #bbb;
  --nav-h: 80px;
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; padding-top: var(--nav-h); }

/* ─── NAV ─── */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.15s;
}
.nav-links a:hover { opacity: 0.45; }
.nav-links a.active { opacity: 0.45; }
.nav-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-link img {
  height: 50px;
  width: auto;
  display: block;
}

/* ─── FOOTER ─── */
#site-footer {
  border-top: 1px solid var(--border);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg);
}
.footer-copy {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.footer-legal {
  display: flex;
  gap: 20px;
  list-style: none;
}
.footer-legal a {
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.15s;
}
.footer-legal a:hover { color: var(--text); }

/* ─── LEGAL MODALS ─── */
.legal-modal {
  display: none;
  position: fixed; inset: 0; z-index: 800;
  background: rgba(0,0,0,0.55);
  align-items: center; justify-content: center;
  padding: 24px;
}
.legal-modal.open { display: flex; }
.legal-box {
  background: #fff;
  max-width: 580px; width: 100%;
  max-height: 82vh; overflow-y: auto;
  padding: 40px 44px;
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}
.legal-close {
  position: absolute; top: 16px; right: 18px;
  background: none; border: none; color: var(--muted);
  font-size: 22px; cursor: pointer; line-height: 1;
  transition: color 0.15s;
}
.legal-close:hover { color: var(--text); }
.legal-box h2 {
  font-size: 15px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text); margin-bottom: 24px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.legal-box h3 {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); margin: 20px 0 7px;
}
.legal-box p, .legal-box address {
  font-size: 13px; color: #444;
  line-height: 1.85; font-style: normal; margin-bottom: 8px;
}
.legal-box a { color: var(--text); }

/* ─── COOKIE BANNER ─── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 700;
  background: rgba(255,255,255,0.97);
  border-top: 1px solid var(--border);
  padding: 14px 22px;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25,0,0,1);
}
#cookie-banner.visible { transform: translateY(0); }
.cookie-text {
  font-size: 12px; color: #555; line-height: 1.6;
  flex: 1; min-width: 200px;
}
.cookie-text a {
  color: var(--text); text-decoration: underline;
  text-underline-offset: 2px; cursor: pointer;
}
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btn {
  font-family: var(--font);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 18px; cursor: pointer; border-radius: 0;
  transition: all 0.15s;
}
.cookie-reject {
  background: #fff; border: 1px solid var(--border-dark); color: #555;
}
.cookie-reject:hover { border-color: var(--text); color: var(--text); }
.cookie-accept {
  background: var(--text); border: 1px solid var(--text); color: #fff;
}
.cookie-accept:hover { opacity: 0.75; }

/* ─── PROJECTS GRID ─── */
.masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 4px;
  gap: 0;
}
@media (max-width: 960px) { .masonry { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .masonry { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .masonry { grid-template-columns: 1fr; } }

.pcard {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #111;
}
.pcard img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25,0,0,1), filter 0.35s;
}
.pcard:hover img { transform: scale(1.04); filter: brightness(0.72); }
.pcard-eye {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(0.8);
  width: 44px; height: 44px;
  border: 1.5px solid rgba(255,255,255,0.85);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.pcard:hover .pcard-eye { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.pcard-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 12px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.pcard:hover .pcard-label { opacity: 1; }
.pcard-title {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.04em; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ─── LIGHTBOX ─── */
#lightbox {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(0,0,0,0);
  overflow-y: auto;
  display: flex; flex-direction: column; align-items: center;
  padding: 64px 24px 48px;
  pointer-events: none;
  transition: background 0.3s;
}
#lightbox.open { background: rgba(0,0,0,0.96); pointer-events: all; }
.lb-close {
  position: fixed; top: 18px; right: 20px; z-index: 610;
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.6);
  width: 32px; height: 32px;
  padding: 0; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  transition: color 0.15s, border-color 0.15s;
}
#lightbox.open .lb-close { display: flex; }
.lb-close:hover { color: #fff; border-color: rgba(255,255,255,0.6); }
.lb-inner {
  width: 100%; max-width: 1200px;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
#lightbox.open .lb-inner { opacity: 1; transform: none; }
#lb-img {
  display: block;
  max-width: 100%; max-height: 78vh;
  width: auto; height: auto;
  margin: 0 auto;
}
.lb-meta {
  padding: 14px 0 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.lb-title {
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  margin: 0 0 10px;
}
.lb-specs {
  display: flex; flex-wrap: wrap; gap: 0;
  font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 12px;
}
.lb-spec + .lb-spec::before {
  content: "·";
  margin: 0 10px;
  color: rgba(255,255,255,0.15);
}
.lb-spec-label { color: rgba(255,255,255,0.2); margin-right: 5px; }
.lb-spec-value { color: rgba(255,255,255,0.5); }
.lb-desc {
  font-size: 12px; color: rgba(255,255,255,0.4);
  line-height: 1.75; letter-spacing: 0.02em;
  max-width: 680px; margin: 0;
}

/* ─── ABOUT PAGE ─── */
.about-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 40px 100px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.about-photo {
  width: 100%;
  aspect-ratio: 4/5;
  background: #f0f0f0;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-photo-caption {
  margin-top: 10px;
  font-size: 11px; color: var(--muted); letter-spacing: 0.06em;
}
.about-eyebrow {
  font-size: 11px; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 22px;
}
.about-heading {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 36px;
}
.about-body { font-size: 14px; line-height: 1.9; color: #444; }
.about-body p + p { margin-top: 16px; }
.contact-links {
  margin-top: 32px;
  display: flex; flex-direction: column; gap: 12px;
}
.clink {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-size: 13px; color: #666; letter-spacing: 0.02em;
  transition: color 0.15s;
}
.clink i { font-size: 17px; color: #c85228; line-height: 1; transition: color 0.15s; }
.clink:hover { color: #111; }
.clink:hover i { color: #a03d1c; }

/* ─── MOBILE ─── */
* { -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }

@media (hover: none) {
  .pcard-label { opacity: 1; }
  .pcard img { filter: brightness(0.78); }
}

@media (max-width: 860px) {
  .about-page { grid-template-columns: 1fr; gap: 48px; padding: 56px 24px 80px; }
}

@media (max-width: 640px) {
  #lightbox { padding: 52px 0 0; overscroll-behavior: contain; }
  .lb-close { top: 10px; right: 10px; width: 40px; height: 40px; }
  .lb-inner { max-width: 100%; }
  #lb-img { max-height: 58vh; width: 100%; object-fit: contain; }
  .lb-meta { padding: 12px 16px 48px; }
  .lb-title { font-size: 12px; }
  .lb-specs { flex-direction: column; gap: 5px; }
  .lb-spec + .lb-spec::before { display: none; }
  .legal-box { padding: 28px 20px; }
  .clink { min-height: 44px; padding: 2px 0; }
  .contact-links { gap: 4px; }
}

@media (max-width: 480px) {
  :root { --nav-h: 56px; }
  .nav-logo-link img { height: 34px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 11px; }
  .about-body { font-size: 15px; }
  .about-heading { margin-bottom: 24px; }
}

@supports (padding: env(safe-area-inset-left)) {
  #site-nav {
    padding-left: max(22px, env(safe-area-inset-left));
    padding-right: max(22px, env(safe-area-inset-right));
  }
  #site-footer {
    padding-left: max(22px, env(safe-area-inset-left));
    padding-right: max(22px, env(safe-area-inset-right));
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }
  #cookie-banner {
    padding-left: max(22px, env(safe-area-inset-left));
    padding-right: max(22px, env(safe-area-inset-right));
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }
}
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  @media (max-width: 640px) {
    .lb-meta { padding-bottom: max(48px, env(safe-area-inset-bottom)); }
  }
}
