/* ============================================================
   the photographr — Michael Meyer
   Palette: Bordeaux accent on warm paper
   ============================================================ */

:root {
  --paper:   #faf9f6;
  --paper-2: #f2f0ea;
  --ink:     #141414;
  --muted:   #6a655c;
  --faint:   #b0a99b;
  --line:    #e7e5df;
  --accent:  #8a1c2b;   /* Bordeaux */
  --accent-dark: #6e1420;
  --img:     #c4beb4;
  --img-2:   #b0aa9e;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --script: 'Playfair Display', Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 20px var(--gutter);
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 0.5px solid var(--line);
}

.logo {
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-primary {
  display: flex; gap: 28px;
  font-size: 14px; color: var(--muted);
}
.nav-primary a { transition: color .2s ease; position: relative; }
.nav-primary a:hover { color: var(--ink); }
.nav-primary a.is-active { color: var(--accent); font-weight: 500; }

.header-right { display: flex; align-items: center; gap: 20px; }

.lang-toggle {
  background: none; border: 0.5px solid var(--line);
  border-radius: 999px; padding: 5px 12px;
  font: inherit; font-size: 12px; font-weight: 500; color: var(--ink);
  cursor: pointer; transition: border-color .2s, background .2s;
}
.lang-toggle:hover { border-color: var(--ink); }

.connect-link {
  font-size: 14px; font-weight: 500;
  border-bottom: 1.5px solid transparent; padding-bottom: 2px;
  transition: border-color .2s;
}
.connect-link:hover { border-color: var(--accent); }

.menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-btn span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* ============ VIEWS ============ */
.view { display: none; padding: clamp(40px, 7vw, 96px) var(--gutter); max-width: var(--maxw); margin: 0 auto; animation: fade .5s ease; }
.view.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.page-head { margin-bottom: clamp(28px, 4vw, 48px); }
.page-head h2 { font-size: clamp(28px, 5vw, 44px); font-weight: 700; letter-spacing: -0.02em; }
.page-head p { color: var(--muted); margin-top: 8px; }

/* ============ HOME / HERO ============ */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: stretch; }

.hero-text { display: flex; flex-direction: column; }

.display {
  font-size: clamp(44px, 8.5vw, 104px);
  font-weight: 700; line-height: 0.9; letter-spacing: -0.035em;
  text-transform: uppercase;
}
.display .accent { color: var(--accent); }
.display .script {
  font-family: var(--script); font-style: italic; font-weight: 400;
  text-transform: none; letter-spacing: 0; color: var(--accent);
  font-size: 0.86em;
}

.about-me { margin-top: auto; padding-top: clamp(32px, 5vw, 56px); max-width: 340px; }
.about-me .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--faint); margin-bottom: 8px; }
.about-me p:not(.eyebrow) { font-size: 14px; color: var(--muted); line-height: 1.6; }

.hero-image { display: flex; }
.hero-image .img-placeholder { width: 100%; height: 100%; }

.statement {
  margin-top: clamp(56px, 9vw, 120px);
  padding-top: clamp(32px, 5vw, 56px);
  border-top: 0.5px solid var(--line);
  max-width: 820px;
}
.statement p {
  font-family: var(--script); font-style: italic;
  font-size: clamp(20px, 3vw, 30px); line-height: 1.45; color: var(--ink);
}

/* ============ IMAGE PLACEHOLDERS ============ */
.img-placeholder {
  position: relative; background: var(--img); overflow: hidden;
  display: block;
}
.img-placeholder::before {
  content: ""; position: absolute; left: 50%; top: 22%;
  width: 26%; aspect-ratio: 1; border-radius: 50%;
  background: var(--img-2); transform: translateX(-50%);
}
.img-placeholder::after {
  content: ""; position: absolute; left: 50%; top: 44%;
  width: 46%; height: 56%; background: var(--img-2);
  border-radius: 50% 50% 0 0; transform: translateX(-50%);
}
.img-placeholder[data-label]::after { }
.img-placeholder .lbl,
.img-placeholder[data-label] { }
.img-placeholder[data-label]::before { z-index: 1; }
.img-placeholder[data-label] {  }
.img-placeholder::marker { }
.img-placeholder[data-label] { }
/* label chip */
.img-placeholder[data-label]:hover { }
.img-placeholder .caption,
.photo-frame .caption { position: absolute; right: 12px; bottom: 10px; font-size: 10px; letter-spacing: .22em; color: #f4f1ea; z-index: 3; }

/* ---- Real photos: Bordeaux duotone ---- */
.svg-filters { position: absolute; width: 0; height: 0; overflow: hidden; }
.photo-frame { position: relative; width: 100%; background: var(--img); overflow: hidden; }
.img-photo {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: url(#duotone-bordeaux) contrast(1.12) brightness(1.02);
}
.hero-image .photo-frame { height: 100%; }

/* ============ WORK GRID ============ */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: clamp(12px, 2vw, 22px); }
.work-item { cursor: pointer; }
.work-item .img-placeholder { aspect-ratio: 3/4; transition: transform .4s ease, filter .4s ease; }
.work-item:hover .img-placeholder { filter: brightness(.94); }
.work-cap { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; }
.work-cap .t { font-weight: 500; }
.work-cap .c { color: var(--faint); }

/* ============ GALLERY ============ */
.gallery-grid { columns: 3 220px; column-gap: clamp(12px, 2vw, 22px); }
.gallery-grid .img-placeholder { width: 100%; margin-bottom: clamp(12px, 2vw, 22px); cursor: zoom-in; break-inside: avoid; }

/* ============ PROJECTS ============ */
.project-feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.project-media .img-placeholder { width: 100%; }
.project-body .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; margin-bottom: 14px; }
.project-body .eyebrow .accent { color: var(--accent); }
.project-body h3 { font-size: clamp(32px, 5vw, 56px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; }
.project-body p { color: var(--muted); margin-bottom: 20px; max-width: 46ch; }

/* ============ ABOUT ============ */
.about-layout { display: grid; grid-template-columns: 0.85fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.about-portrait .img-placeholder { width: 100%; }
.about-content h2 { font-size: clamp(28px, 5vw, 48px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 20px; }
.about-content .lead { font-family: var(--script); font-style: italic; font-size: clamp(19px, 2.4vw, 26px); line-height: 1.4; margin-bottom: 20px; }
.about-content p { color: var(--muted); margin-bottom: 18px; max-width: 54ch; }

/* ============ CONTACT ============ */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.contact-layout h2 { font-size: clamp(28px, 5vw, 48px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; }
.contact-layout > div > p { color: var(--muted); margin-bottom: 28px; max-width: 44ch; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; padding-bottom: 14px; border-bottom: 0.5px solid var(--line); }
.contact-list .c-label { font-size: 12px; letter-spacing: .04em; color: var(--faint); text-transform: uppercase; }
.contact-list a { font-size: 17px; border-bottom: 1px solid transparent; width: fit-content; transition: border-color .2s; }
.contact-list a:hover { border-color: var(--accent); }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 500; color: var(--muted); }
.contact-form input, .contact-form textarea {
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--paper); border: none; border-bottom: 1.5px solid var(--line);
  padding: 10px 2px; transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form textarea { resize: vertical; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block; background: var(--ink); color: var(--paper);
  font-size: 14px; font-weight: 500; padding: 13px 26px; border: none;
  cursor: pointer; transition: background .2s; width: fit-content;
}
.btn:hover { background: var(--accent); }
.btn-text { font-size: 14px; font-weight: 500; color: var(--accent); border-bottom: 1.5px solid transparent; padding-bottom: 2px; transition: border-color .2s; }
.btn-text:hover { border-color: var(--accent); }

/* ============ LEGAL ============ */
.legal { max-width: 760px; }
.legal h2 { font-size: clamp(28px, 5vw, 42px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 28px; }
.legal h3 { font-size: 18px; font-weight: 600; margin: 28px 0 8px; }
.legal p { color: var(--muted); margin-bottom: 14px; }
.legal .muted { font-size: 13px; color: var(--faint); }
.legal a { color: var(--accent); }

/* ============ FOOTER ============ */
.site-footer { border-top: 0.5px solid var(--line); margin-top: clamp(40px, 8vw, 100px); }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 28px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.footer-brand { font-weight: 600; color: var(--ink); }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { transition: color .2s; }
.footer-nav a:hover { color: var(--accent); }

/* ============ COOKIE BANNER ============ */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150;
  max-width: 560px; margin: 0 auto;
  background: var(--ink); color: #f4f1ea;
  padding: 18px 20px; border-radius: 4px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.cookie-banner p { font-size: 13px; line-height: 1.5; flex: 1 1 240px; }
.cookie-banner a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.4); }
.cookie-actions { display: flex; gap: 10px; }
.btn-sm { font: inherit; font-size: 13px; font-weight: 500; padding: 9px 16px; border: none; cursor: pointer; background: var(--paper); color: var(--ink); border-radius: 3px; }
.btn-sm.ghost { background: transparent; color: #f4f1ea; border: 0.5px solid rgba(255,255,255,.35); }
.btn-sm:hover { background: var(--accent); color: #fff; }
.btn-sm.ghost:hover { background: rgba(255,255,255,.08); }

/* ============ LIGHTBOX ============ */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(20,20,20,.94); display: flex; align-items: center; justify-content: center; padding: 5vw; }
.lightbox[hidden] { display: none; }
.lightbox-content { max-width: 90vw; max-height: 88vh; }
.lightbox-content .img-placeholder { width: min(70vw, 640px); aspect-ratio: 3/4; }
.lightbox-close { position: absolute; top: 20px; right: 28px; background: none; border: none; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .nav-primary {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    flex-direction: column; gap: 8px; background: var(--paper);
    padding: 96px 32px; font-size: 22px;
    transform: translateX(100%); transition: transform .3s ease;
    border-left: 0.5px solid var(--line); z-index: 90;
  }
  body.nav-open .nav-primary { transform: translateX(0); }
  body.nav-open .menu-btn span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  body.nav-open .menu-btn span:nth-child(2) { opacity: 0; }
  body.nav-open .menu-btn span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .menu-btn { display: block; z-index: 95; }
  .connect-link { display: none; }

  .hero, .project-feature, .about-layout, .contact-layout { grid-template-columns: 1fr; }
  .hero-image { order: -1; }
  .hero-image .img-placeholder { aspect-ratio: 4/3 !important; }
  .about-portrait { max-width: 320px; }
  .gallery-grid { columns: 2 150px; }
}

@media (max-width: 480px) {
  .gallery-grid { columns: 1; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}
