/* Anoush Anou — black on white, thin type, the photos do the talking. */
:root {
  --paper: #ffffff;
  --ink: #161616;
  --mute: #6f6f6f;
  --line: #e6e6e6;
  --veil: rgba(255, 255, 255, 0.97);
  --gap: 6px;
  --side: clamp(16px, 3vw, 40px);
  --row: 300px;
  font-family: "Raleway", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); line-height: 1.7; font-size: 16px; }
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* ── header ───────────────────────────────────────────── */
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px var(--side) 18px; position: relative; z-index: 20; }
.logo img { width: clamp(180px, 26vw, 320px); }
.top nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(16px, 2.4vw, 34px); }
.top nav li { position: relative; }
.top nav a { text-decoration: none; font-size: 13px; letter-spacing: 0.18em; text-transform: lowercase; font-weight: 400; padding: 6px 0; display: inline-block; }
.top nav li.on > a, .top nav a[aria-current="page"] { border-bottom: 1px solid var(--ink); }
.top .sub { position: absolute; top: 100%; left: -14px; display: none !important; flex-direction: column; gap: 0 !important; background: var(--paper); padding: 8px 14px 12px !important; min-width: 140px; border: 1px solid var(--line); }
.top nav li:hover > .sub, .top nav li:focus-within > .sub { display: flex !important; }
.top .sub a { font-size: 12px; }
.menu-toggle { display: none; }

@media (max-width: 760px) {
  .top { flex-wrap: wrap; padding-top: 16px; }
  .logo img { width: 190px; }
  .menu-toggle { display: block; font: inherit; font-size: 13px; letter-spacing: 0.18em; text-transform: lowercase; background: none; border: 1px solid var(--ink); color: var(--ink); padding: 6px 12px; border-radius: 0; }
  .top nav { display: none; width: 100%; }
  .top nav.open { display: block; }
  .top nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .top nav li { border-top: 1px solid var(--line); }
  .top nav a { padding: 12px 0; font-size: 15px; }
  .top nav li.on > a, .top nav a[aria-current="page"] { border-bottom: 0; font-weight: 400; }
  .top .sub { position: static; display: flex !important; border: 0; padding: 0 0 10px 18px !important; }
  .top .sub li { border: 0; }
  .top .sub a { padding: 6px 0; font-size: 14px; }
}

/* ── headings ─────────────────────────────────────────── */
h1 { font-weight: 300; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: 0.08em; line-height: 1.2; margin: 0 0 24px; }
.page-head { padding: 18px var(--side) 22px; display: flex; align-items: baseline; gap: 18px; }
.page-head h1 { margin: 0; }
.crumb { margin: 0; font-size: 13px; letter-spacing: 0.18em; text-transform: lowercase; color: var(--mute); }
.crumb a { text-decoration: none; }
.crumb a::after { content: " /"; }

/* ── home: one photo at a time, slow cross-fade ───────── */
.is-home .foot { display: none; }
.home { padding: 0 var(--side) var(--side); }
.slides { list-style: none; margin: 0; padding: 0; position: relative; height: calc(100svh - 150px); min-height: 380px; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; display: flex; justify-content: center; }
.slide.is-on { opacity: 1; }
.slide img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.home-links { display: flex; justify-content: center; gap: clamp(18px, 4vw, 48px); padding-top: 18px; }
.home-links a { text-decoration: none; font-size: 13px; letter-spacing: 0.18em; text-transform: lowercase; }
.home-links a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .slides { height: 70svh; }
  .home-links { flex-wrap: wrap; row-gap: 8px; }
}

/* ── justified gallery: rows fill the width, every photo keeps its shape ── */
.justified { display: flex; flex-wrap: wrap; gap: var(--gap); padding: 0 var(--side) var(--side); }
.justified::after { content: ""; flex-grow: 999; }
.tile { margin: 0; flex: calc(var(--r) * 1000) 1 calc(var(--r) * var(--row)); aspect-ratio: var(--r); max-height: calc(var(--row) * 1.8); background: #f3f3f3; }
.tile a { display: block; height: 100%; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.25s; }
.tile a:hover img { opacity: 0.88; }
@media (max-width: 1100px) { :root { --row: 240px; } }
@media (max-width: 560px) { :root { --row: 150px; --gap: 4px; } }

/* ── modelling index ─────────────────────────────────── */
.covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); padding: 0 var(--side) var(--side); }
.cover { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; text-decoration: none; background: #f3f3f3; }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.cover:hover img { transform: scale(1.03); }
.cover-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.55)); color: #fff; font-size: 20px; letter-spacing: 0.12em; text-transform: lowercase; display: flex; justify-content: space-between; align-items: baseline; }
.cover-label small { font-size: 12px; letter-spacing: 0.1em; opacity: 0.85; }
@media (max-width: 760px) { .covers { grid-template-columns: 1fr; } .cover { aspect-ratio: 4 / 3; } }

/* ── about / contact ─────────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 80px); max-width: 1150px; margin: 0 auto; padding: clamp(24px, 5vw, 64px) var(--side); align-items: start; }
.split-text { max-width: 34em; font-size: 17px; }
.split-text p { margin: 0 0 1.1em; }
.split-photo img { width: 100%; max-height: 82svh; object-fit: contain; object-position: top; }
.big-email { font-size: clamp(19px, 2.4vw, 26px); letter-spacing: 0.02em; }
.button { display: inline-block; margin-top: 8px; padding: 10px 20px; border: 1px solid var(--ink); text-decoration: none; font-size: 13px; letter-spacing: 0.18em; text-transform: lowercase; }
.button:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* ── footer ──────────────────────────────────────────── */
.foot { display: flex; justify-content: space-between; gap: 16px; padding: 20px var(--side) 28px; font-size: 12px; letter-spacing: 0.08em; color: var(--mute); }
.foot p { margin: 0; }
.foot .social a { margin-left: 18px; text-decoration: none; }
.foot .social a:hover { color: var(--ink); }

/* ── photo viewer ────────────────────────────────────── */
.viewer { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: var(--veil); color: var(--ink); }
.viewer::backdrop { background: var(--veil); }
.viewer figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 64px 24px; gap: 12px; }
.viewer img { max-width: 100%; max-height: calc(100dvh - 120px); width: auto; height: auto; object-fit: contain; user-select: none; }
.viewer figcaption { font-size: 13px; letter-spacing: 0.08em; color: var(--mute); min-height: 1.4em; }
.viewer button { position: absolute; background: none; border: 0; color: var(--ink); font: 200 44px/1 "Raleway", sans-serif; cursor: pointer; padding: 12px 16px; }
.v-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.v-next { right: 4px; top: 50%; transform: translateY(-50%); }
.v-close { right: 8px; top: 4px; font-size: 40px !important; }
.v-count { position: absolute; left: 20px; top: 16px; margin: 0; font-size: 12px; letter-spacing: 0.12em; color: var(--mute); }
@media (max-width: 560px) {
  .viewer figure { padding: 52px 8px 16px; }
  .v-prev, .v-next { top: auto; bottom: 6px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .slide, .cover img, .tile img { transition: none; }
}
