:root {
  --bg: #fff;
  --ink: #000;
  --muted: #a3a3a3;
  --ph: #ececec;
  --ph-ink: #b4b4b4;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --edge: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
body { background: var(--bg); color: var(--ink); font: 500 13px/1.1 var(--sans); letter-spacing: .01em; }
a { color: inherit; text-decoration: none; }
img, video { display: block; width: 100%; height: 100%; object-fit: contain; }

/* ---------- Header: tick ruler + 5 headers spread edge to edge ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 20; background: var(--bg); padding: 12px var(--edge) 10px; }
.ticks { display: flex; justify-content: space-between; height: 12px; }
.ticks a { flex: 1; display: flex; justify-content: center; }
.ticks a::before { content: ""; width: 1px; height: 100%; background: var(--ink); transition: transform .15s; transform-origin: bottom; }
.ticks a:hover::before, .ticks a.on::before { transform: scaleY(1.6); }
nav { display: flex; justify-content: space-between; margin-top: 6px; }
nav a.on { color: var(--muted); }
.sub { text-align: center; color: var(--muted); margin-top: 6px; min-height: 13px; font-weight: 400; }
.sub b { color: var(--ink); font-weight: 500; }
main { padding-top: 78px; min-height: 100vh; }

/* ---------- Placeholder ---------- */
.ph { width: 100%; height: 100%; background: var(--ph); color: var(--ph-ink); display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; font-weight: 400; font-size: 11px; }

/* ---------- Home: scattered photo wall gliding left, fills the first screen ---------- */
.wall { position: relative; height: calc(100vh - 78px); min-height: 480px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-evenly; padding: 10px 0 50px; }
.strip { display: flex; align-items: center; will-change: transform; }
.strip a { flex: none; display: flex; align-items: center; justify-content: center; }
.strip img { width: 100%; height: auto; max-height: calc((100vh - 200px) / 4.4); }
.strip a:hover { opacity: .7; }
.wall-hint { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: var(--muted); }

/* ---------- Home + Video: one big centered piece at a time ---------- */
.feature { display: flex; flex-direction: column; align-items: center; padding: 30px var(--edge) 90px; }
.feature .media { width: min(58vw, 880px); aspect-ratio: 4 / 3; }
.feature .media.fit { width: auto; aspect-ratio: auto; display: flex; justify-content: center; }
.feature .media.fit img, .feature .media.fit video { width: auto; height: auto; max-width: min(58vw, 880px); max-height: 74vh; object-fit: contain; }
.feature .thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; width: min(58vw, 880px); }
.feature .thumbs { align-items: center; }
.feature .thumbs a { height: 52px; }
.feature .thumbs a img { width: auto; height: 52px; }
.feature .thumbs a:hover { opacity: .6; }
.feature .cap { margin-top: 28px; text-align: center; line-height: 1.25; }
.feature .cap span { display: block; color: var(--muted); }
.feature a:hover .cap b { color: var(--muted); }

/* ---------- Photography: text index, image previews on hover ---------- */
.index { padding: 40px var(--edge) 120px; display: grid; grid-template-columns: repeat(4, 1fr); }
.index a { grid-column: 2 / 4; display: flex; justify-content: space-between; padding: 7px 0; font-size: 26px; letter-spacing: -.025em; line-height: 1.1; }
.index a span { color: var(--muted); font-size: 13px; letter-spacing: .01em; align-self: center; }
.index:hover a { color: var(--muted); }
.index:hover a:hover { color: var(--ink); }
.peek { position: fixed; z-index: 15; width: 220px; pointer-events: none; opacity: 0; transition: opacity .15s; }
.peek.on { opacity: 1; }
.peek img { height: auto; }

/* ---------- Overview: 5-column grid, images sit on a shared baseline ---------- */
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 60px var(--edge); padding: 20px var(--edge) 120px; align-items: end; }
.grid .media img { height: auto; }
.grid .cap { margin-top: 8px; line-height: 1.25; }
.grid .cap span { display: block; color: var(--muted); }
.grid a:hover .media { opacity: .85; }

/* ---------- Project page: one photo at a time, click to move through ---------- */
.p-head { text-align: center; padding: 0 var(--edge) 28px; line-height: 1.35; }
.p-head span { color: var(--muted); font-weight: 400; }
.slide { position: relative; height: calc(100vh - 78px - 48px - 70px); min-height: 320px; padding: 0 var(--edge); }
.slide-img { height: 100%; }
.slide-img img { object-fit: contain; }
.hit { position: absolute; top: 0; bottom: 0; width: 50%; background: none; border: 0; }
.hit.prev { left: 0; cursor: w-resize; }
.hit.next { right: 0; cursor: e-resize; }
.slide-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 18px var(--edge) 20px; }
.slide-bar > a { justify-self: end; }
.slide-bar > a span { color: var(--muted); }
.slide-thumbs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.slide-thumbs { align-items: center; }
.slide-thumbs a img { width: auto; height: 32px; }
.slide-thumbs a { cursor: pointer; opacity: .35; transition: opacity .15s; }
.slide-thumbs a:hover, .slide-thumbs a.on { opacity: 1; }

/* ---------- Information ---------- */
.info { padding: 26px var(--edge) 120px; max-width: 1240px; }
.info p { font-size: 26px; line-height: 1.12; letter-spacing: -.025em; }
.info .links { margin-top: 30px; font-size: 26px; line-height: 1.15; letter-spacing: -.025em; }
.info .links a:hover { color: var(--muted); }
.info .svc { margin-top: 30px; color: var(--muted); font-size: 26px; letter-spacing: -.025em; line-height: 1.15; }


@media (max-width: 760px) {
  nav { font-size: 11px; }
  nav a:nth-child(3) { display: none; }
  .feature .media { width: 100%; }
  .feature .media.fit img { max-width: 100%; }
  .slide-bar { grid-template-columns: 1fr 1fr; } .slide-thumbs { display: none; }
  .strip a { zoom: .65; }
  .index { grid-template-columns: 1fr; } .index a { grid-column: 1; font-size: 20px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 36px var(--edge); }
  .info p, .info .links, .info .svc { font-size: 20px; }
}
