:root {
  --bg: #f7f6f3;
  --ink: #111111;
  --mute: #8a8780;
  --line: #dcdad5;
  --pad: 24px;
  --fs: 11px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--fs);
  letter-spacing: 0.02em;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
img { display: block; }
button { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.up { text-transform: uppercase; }
.b { font-weight: 600; }
.m { color: var(--mute); }

/* Header: four quiet columns */
.hd {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 22px var(--pad);
  align-items: center;
  text-transform: uppercase;
}
.hd .logo img { height: 16px; width: auto; }
.hd .count { text-align: right; }
.hd nav { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.hd nav a { color: var(--mute); }
.hd nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Selected: one photo at a time */
.slide { height: 100vh; height: 100svh; min-height: 520px; display: flex; flex-direction: column; overflow: hidden; }
.stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 8px var(--pad); }
.stage button { height: 100%; max-height: 680px; display: flex; align-items: center; justify-content: center; cursor: e-resize; }
.stage img { height: 100%; width: auto; max-width: min(70vw, 680px); object-fit: contain; transition: opacity .28s ease; }
.stage img.out { opacity: 0; }
.strip { padding: 16px var(--pad) 22px; display: flex; gap: 6px; justify-content: center; overflow-x: auto; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip button { flex: none; opacity: .28; transition: opacity .25s; }
.strip button:hover, .strip button[aria-current="true"] { opacity: 1; }
.strip img { width: 44px; height: 55px; object-fit: cover; }

/* Work index */
.grid { padding: 64px var(--pad) 96px; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 40px 16px; }
.grid a { display: flex; flex-direction: column; gap: 8px; transition: opacity .25s; }
.grid a:hover { text-decoration: none; }
.grid.hovering a { opacity: .3; }
.grid.hovering a.on { opacity: 1; }
.grid img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: #e9e7e2; }

/* Info */
.info { padding: 120px var(--pad) 96px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: start; }
.info img { width: 72%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.info .col { display: flex; flex-direction: column; gap: 16px; }
.info p { margin: 0; font-size: 15px; line-height: 1.5; letter-spacing: 0; max-width: 340px; }
.info .list { display: flex; flex-direction: column; gap: 6px; text-transform: uppercase; }
.info .end { justify-self: end; text-align: right; }

/* Clients */
.login { min-height: calc(100svh - 60px); display: flex; align-items: center; justify-content: center; padding: var(--pad); }
.login form { width: 320px; max-width: 100%; display: flex; flex-direction: column; gap: 28px; text-transform: uppercase; }
.login label { display: flex; flex-direction: column; gap: 8px; }
.login input { border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding: 8px 0; font: 400 14px/1.3 "Inter", Helvetica, Arial, sans-serif; color: var(--ink); border-radius: 0; }
.login input:focus { outline: none; border-bottom-width: 2px; }
.login .row { display: flex; justify-content: space-between; align-items: center; }
.login .row button { min-height: 44px; font-weight: 600; text-transform: uppercase; }
.login .msg { min-height: 1.4em; color: var(--mute); }

/* Phones: designed, not shrunk */
@media (max-width: 820px) {
  :root { --pad: 16px; }
  .hd { grid-template-columns: 1fr auto; row-gap: 16px; padding-top: 18px; }
  .hd .logo { order: 1; }
  .hd .count { order: 2; }
  .hd nav { order: 3; grid-column: 1 / -1; justify-content: space-between; flex-wrap: nowrap; }
  .hd .cap { order: 4; grid-column: 1 / -1; }
  .hd .cap:empty { display: none; }
  .stage img { max-width: 100%; height: auto; max-height: 100%; }
  .stage button { width: 100%; }
  .strip { justify-content: flex-start; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 10px; padding-top: 32px; }
  .info { grid-template-columns: 1fr; padding-top: 40px; gap: 40px; }
  .info img { width: 60%; }
  .info .end { justify-self: start; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
