/* Change these to restyle the whole site */
:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #8a8a8a;
  --line: #e6e6e6;
  --font: "Jost", "Helvetica Neue", Arial, sans-serif;
  --max: 1400px;
  --gutter: 40px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 300 16px/1.75 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header { padding: 36px 0 28px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 16px; font-weight: 500; font-size: 1.05rem; letter-spacing: .28em; text-transform: uppercase; }
.header-right { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.menu { display: flex; gap: 28px; }
.menu a { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--text); }
.icons { display: flex; gap: 16px; }
.icons a { width: 18px; height: 18px; color: var(--text); opacity: .75; transition: opacity .2s; }
.icons a:hover { opacity: 1; }
.icons svg { width: 100%; height: 100%; }

/* Filter */
.filter { margin: 8px 0 28px; }
.topfilter, .subfilter { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.subfilter { margin-top: 14px; }
.subfilter button { font-size: .72rem; }
.place-intro { margin: 28px 0 6px; max-width: 760px; }
.place-intro h2 { margin: 0 0 6px; font-weight: 400; font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase; }
.place-intro .place-meta { margin: 0 0 10px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.place-intro .place-role { margin: 0 0 6px; font-weight: 500; }
.place-intro .place-text { margin: 0; color: var(--muted); line-height: 1.7; }
.filter button { font: inherit; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; background: none; border: 0; padding: 0 0 2px; color: var(--muted); cursor: pointer; border-bottom: 1px solid transparent; }
.filter button[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--text); }

/* Project grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-bottom: 80px; }
.tile { position: relative; display: block; overflow: hidden; }
.tile .img { aspect-ratio: 14 / 9; overflow: hidden; background: #eee; }
/* Cover photos are black & white until you hover, then they turn to color */
.tile img, .tile .ph { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .5s ease, transform .8s ease; }
.tile:hover img, .tile:hover .ph, .tile:focus-visible img, .tile:focus-visible .ph { filter: grayscale(0); transform: scale(1.03); }
/* Project name appears at the bottom-left on hover */
.tile .overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 32px 34px; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0) 55%); opacity: 0; transition: opacity .4s ease; }
.tile .overlay h2 { margin: 0; font-weight: 400; font-size: 1.1rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.35; transform: translateY(8px); transition: transform .4s ease; }
.tile .overlay p { margin: 8px 0 0; font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.85); transform: translateY(8px); transition: transform .4s ease .05s; }
.tile:hover .overlay, .tile:focus-visible .overlay { opacity: 1; }
.tile:hover .overlay h2, .tile:hover .overlay p, .tile:focus-visible .overlay h2, .tile:focus-visible .overlay p { transform: none; }
/* Placeholder "photos" (replaced by your images) */
.ph { background: linear-gradient(135deg, #c9a27e, #6f4e37 60%, #2d2a26); }
.ph-1 { background: linear-gradient(160deg, #8fb3c9, #3d5a73 60%, #1e2a35); }
.ph-2 { background: linear-gradient(110deg, #e6dccb, #b08d57 55%, #4a3b28); }

/* Project page */
.project { padding-bottom: 80px; }
.project-hero { margin-bottom: 48px; }
.project-hero img { max-width: 100%; max-height: 88vh; width: auto; margin: 0 auto; }
.project-hero .ph { width: 100%; aspect-ratio: 16 / 9; }
.project-head { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; margin-bottom: 56px; }
.project-head h1 { margin: 0 0 20px; font-weight: 400; font-size: 1.6rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3; }
.facts { margin: 0; display: grid; gap: 10px; }
.facts-list { margin: 0; padding-left: 1.1em; list-style: disc; }
.facts-list li { margin: 0 0 6px; }
.facts dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; }
.project-text p { margin: 0 0 1em; max-width: 68ch; }
.subtitle { margin: -8px 0 28px; color: var(--muted); font-size: .95rem; }
.gallery { display: grid; gap: 40px; }
.gallery.lead { margin-top: 32px; }
.project-text > p:last-of-type { margin-bottom: 0; }
.gallery img { width: 100%; height: auto; }
.gallery img.small { width: auto; max-width: 100%; margin: 0 auto; }
.gallery img.portrait { width: auto; max-width: 100%; max-height: 92vh; margin: 0 auto; }
.pager { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); margin-top: 64px; padding-top: 24px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.pager a { color: var(--muted); }
.pager a:hover { color: var(--text); }
.pager a { flex: 1; }
.pager small { display: block; font-size: .65rem; letter-spacing: .16em; margin-bottom: 4px; opacity: .7; }
.pager .pager-back { text-align: center; }
.pager .pager-next { text-align: right; }
.back { display: inline-block; margin: 0 0 20px; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.back:hover { color: var(--text); }

/* Bio page */
.bio { display: grid; grid-template-columns: 1.2fr 1fr; gap: 72px; align-items: start; padding: 24px 0 72px; }
.bio h1 { margin: 0 0 4px; font-weight: 400; font-size: 1.5rem; letter-spacing: .22em; text-transform: uppercase; }
.bio .role { margin: 0 0 36px; color: var(--muted); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
.contact { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 8px; }
.contact li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline; }
.contact span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.contact a:hover { border-bottom-color: currentColor; }
.bio-text p { margin: 0 0 1.2em; }
.bio-text p:first-child { font-weight: 500; font-size: 1.15rem; line-height: 1.6; }
.journey { padding: 8px 0 0; will-change: opacity, transform; }
.journey h2 { margin: 0 0 20px; font-weight: 400; font-size: .85rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.journey-scroll { overflow: hidden; }
.scroll-cue { margin: 8px 0 0; text-align: center; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.scroll-cue span { display: block; width: 1px; height: 24px; margin: 8px auto 0; background: currentColor; animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .scroll-cue span { animation: none; } }
.journey-map { display: block; width: 100%; height: auto; }
.bio .portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); }
.cv-link { display: inline-block; margin-top: 16px; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid var(--text); padding-bottom: 2px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: .78rem; letter-spacing: .1em; color: var(--muted); }

@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  :root { --gutter: 16px; }
  .site-header { padding: 24px 0 20px; }
  .brand { font-size: .95rem; letter-spacing: .22em; }
  .header-right { gap: 20px; width: 100%; justify-content: space-between; }
  .menu { gap: 18px; }
  .grid { grid-template-columns: 1fr; gap: 6px; }
  /* phones have no hover: show photos in color with the name on them */
  .tile img, .tile .ph { filter: none; }
  .tile .overlay { opacity: 1; padding: 0 20px 22px; }
  .tile .overlay h2, .tile .overlay p { transform: none; }
  .project-head, .bio { grid-template-columns: 1fr; gap: 32px; }
  .bio .portrait-col { max-width: 360px; order: -1; }
}

/* Discourage saving images */
img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.shield { position: relative; display: block; }
.shield::after { content: ""; position: absolute; inset: 0; background: transparent; z-index: 1; }
.shield > img { pointer-events: none; }
.tile .img { position: relative; }
.tile .img::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* logo mark */
.brand .logo { height: 32px; width: auto; flex: none; fill: none; stroke: currentColor; stroke-width: 5.4; stroke-linecap: square; stroke-linejoin: miter; }
@media (max-width: 700px) { .brand .logo { height: 24px; } .brand { gap: 12px; } }
