:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #666666;
  --line: #e2e2e2;
  --accent: #111111;
  --placeholder: #eeeeee;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 125%; }
body {
  background: var(--bg); color: var(--fg);
  font-family: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

/* Header */
header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px var(--gutter);
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.brand { text-decoration: none; letter-spacing: .18em; text-transform: uppercase; font-size: .85rem; color: var(--fg); }
nav { display: flex; gap: 28px; }
/* Nav links and gallery filters share one style: black text, hairline on hover/selected */
nav a, .filters button {
  text-decoration: none; font: inherit; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg); background: none; border: 0; border-bottom: 1px solid transparent; padding: 2px 0; cursor: pointer;
}
nav a:hover, nav a[aria-current="page"], .filters button:hover, .filters button[aria-pressed="true"] { border-bottom-color: var(--fg); }
@media (max-width: 600px) { nav { gap: 16px; } }

/* Hero (home) */
.hero {
  height: calc(100svh - 64px); min-height: 480px; position: relative;
  display: flex; align-items: flex-end;
  background: var(--placeholder) url("img/hero.jpg") center / cover no-repeat;
}
.hero::after { content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,.1) 55%); }
.hero-text { position: relative; z-index: 1; padding: var(--gutter); color: #fff; }
.hero h1 { font-weight: 300; font-size: clamp(2rem, 6vw, 4rem); letter-spacing: .02em; line-height: 1.1; }
.hero p { margin-top: 10px; font-size: 1rem; opacity: .85; }
.scroll-cue { margin-top: 22px; display: inline-block; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 3px; }

/* Sections and pages */
section { padding: clamp(56px, 9vw, 120px) var(--gutter); }
main { padding-top: 64px; }
.wrap { max-width: var(--max); margin: 0 auto; }
h1.page-title, h2 { font-weight: 300; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: .04em; margin-bottom: 8px; }
.sub { color: var(--muted); margin-bottom: 36px; }
.more { display: inline-block; margin-top: 28px; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 3px; }

/* Gallery */
.filters { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.filters .n { opacity: .5; margin-left: 4px; }
.grid { columns: 3 300px; column-gap: 14px; }
.tile { break-inside: avoid; margin-bottom: 14px; position: relative; cursor: zoom-in; background: var(--placeholder); border: 0; padding: 0; width: 100%; display: block; }
.tile img { width: 100%; height: auto; transition: opacity .25s; }
.tile:hover img { opacity: .85; }
.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.status { color: var(--muted); font-size: .85rem; margin-top: 18px; }
.status a { color: var(--fg); }

/* About */
.prose { max-width: 640px; }
.prose p + p { margin-top: 1em; }
.prose p { opacity: .88; }
.prose .more { margin-top: 36px; }

/* Contact */
.contact { border-top: 1px solid var(--line); }
.contact .wrap > * { max-width: 640px; }   /* keep .wrap's margins so the left edge matches About */
form { display: grid; gap: 18px; margin-top: 8px; }
label { display: grid; gap: 6px; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
input, textarea {
  font: inherit; font-size: 1rem; letter-spacing: normal; text-transform: none;
  color: var(--fg); background: transparent; border: 1px solid var(--line); padding: 12px 14px; border-radius: 0;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.send {
  justify-self: start; font: inherit; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--bg); background: var(--fg); border: 0; padding: 14px 32px; cursor: pointer;
}
.send:hover { opacity: .8; }
.alt { margin-top: 28px; color: var(--muted); font-size: .9rem; }
.alt a { color: var(--fg); }

footer { padding: 32px var(--gutter); border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; text-align: center; }

/* Lightbox */
.lb { position: fixed; inset: var(--header-h, 70px) 0 0 0; z-index: 50; background: var(--bg); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 24px; }
.lb.open { display: flex; }
.lb img { max-height: calc(100vh - var(--header-h, 70px) - 90px); max-width: 94vw; object-fit: contain; }
.lb p { color: var(--muted); margin-top: 14px; font-size: .9rem; text-align: center; min-height: 1.4em; }
.lb button { position: absolute; background: none; border: 0; color: var(--fg); font-size: 2rem; cursor: pointer; padding: 12px; opacity: .6; }
.lb button:hover { opacity: 1; }
.lb .x { top: 12px; right: 16px; }
.lb .prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb .next { right: 8px; top: 50%; transform: translateY(-50%); }


/* Home: one clickable cover per gallery */
#about { padding-bottom: clamp(16px, 3vw, 40px); }
#galleries { padding-top: clamp(16px, 3vw, 40px); }
.gallery-links { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.gallery-link { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--placeholder); text-decoration: none; }
.gallery-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .25s; }
.gallery-link:hover img, .gallery-link:focus-visible img { transform: scale(1.03); opacity: .92; }
.gallery-link .label { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: #fff; font-size: clamp(1rem, 1.6vw, 1.25rem); letter-spacing: .14em; text-transform: uppercase; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
@media (max-width: 720px) { .gallery-links { grid-template-columns: repeat(2, 1fr); } }
