/* Salem Reyz — editorial portfolio */
:root {
  --paper: #f2eee7;
  --paper-2: #e9e3d9;
  --ink: #151412;
  --ink-2: #3a3631;
  --muted: #847c71;
  --line: rgba(21, 20, 18, .14);
  --accent: #a44a2b;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
}
@media (prefers-color-scheme: dark) {
  :root { --paper:#0f0e0d; --paper-2:#181614; --ink:#ece6dc; --ink-2:#c9c1b5; --muted:#8f877b; --line:rgba(236,230,220,.14); --accent:#e0906a; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--paper); }

/* film grain */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* labels */
.label { font-family: var(--sans); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.num { font-family: var(--sans); font-variant-numeric: tabular-nums; }

/* header */
.site-head { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .4s, color .4s, border-color .4s; border-bottom: 1px solid transparent; }
.site-head .in { max-width: var(--max); margin: 0 auto; padding: 22px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font-size: 1.15rem; letter-spacing: .04em; white-space: nowrap; }
.logo span { font-style: italic; color: var(--muted); }
.nav { display: flex; gap: clamp(14px, 2.4vw, 34px); font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.nav a { position: relative; padding: 4px 0; opacity: .78; transition: opacity .2s; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; }
.site-head.solid { background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); }
.site-head.on-hero:not(.solid) { color: #f4efe7; }
.menu-btn { display: none; background: none; border: 0; color: inherit; font: inherit; font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; padding: 0 var(--gutter); background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 2.2rem; letter-spacing: 0; text-transform: none; opacity: 0; pointer-events: none; transition: opacity .35s; }
  .nav a { opacity: 1; }
  .menu-open .nav { opacity: 1; pointer-events: auto; }
  .menu-open .site-head { color: var(--ink) !important; }
}

/* hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; color: #f4efe7; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: settle 2.4s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes settle { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,.45) 100%); }
.hero .cap { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(28px, 6vh, 64px); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.hero h1 { font-weight: normal; font-size: clamp(3rem, 9.5vw, 9.5rem); line-height: .92; letter-spacing: -.035em; }
.hero h1 em { font-style: italic; }
.hero .label { color: rgba(244,239,231,.8); }
.hero .scroll { writing-mode: vertical-rl; font-family: var(--sans); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; opacity: .8; }
.hero .scroll::after { content: ""; display: inline-block; width: 1px; height: 48px; margin-top: 12px; background: currentColor; animation: drip 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0%{transform:scaleY(0)} 50%{transform:scaleY(1)} 100%{transform:scaleY(0);transform-origin:bottom} }
@media (max-width: 600px) { .hero .scroll { display: none; } .hero .cap { grid-template-columns: 1fr; } }

/* layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 12vw, 160px) 0; }
.rule { border-top: 1px solid var(--line); }

/* statement */
.statement { display: grid; grid-template-columns: 1fr 2.4fr; gap: clamp(24px, 6vw, 96px); }
.statement p { font-size: clamp(1.5rem, 3.2vw, 2.7rem); line-height: 1.22; letter-spacing: -.012em; color: var(--ink); }
.statement p em { color: var(--accent); }
@media (max-width: 760px) { .statement { grid-template-columns: 1fr; } }

/* series index */
.index-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; }
.series-list { list-style: none; border-top: 1px solid var(--line); }
.series-list li { border-bottom: 1px solid var(--line); }
.series-list a { position: relative; display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 24px; padding: clamp(18px, 3vw, 34px) 0; }
.series-list .n { color: var(--muted); }
.series-list .t { font-size: clamp(2rem, 6vw, 5.4rem); line-height: 1; letter-spacing: -.03em; transition: transform .5s cubic-bezier(.2,.7,.2,1), color .3s; }
.series-list .m { text-align: right; }
.series-list .thumb { position: absolute; right: 22%; top: 50%; width: clamp(160px, 18vw, 280px); aspect-ratio: 4/5; transform: translateY(-50%) rotate(-3deg) scale(.9); opacity: 0; pointer-events: none; transition: opacity .35s, transform .5s cubic-bezier(.2,.7,.2,1); z-index: 2; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.series-list .thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) {
  .series-list a:hover .t { transform: translateX(18px); font-style: italic; }
  .series-list a:hover .thumb { opacity: 1; transform: translateY(-50%) rotate(-3deg) scale(1); }
}
@media (max-width: 600px) { .series-list a { grid-template-columns: 44px 1fr; } .series-list .m { grid-column: 2; text-align: left; } }

/* feature split */
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; }
.split .txt h2 { font-weight: normal; font-size: clamp(2rem, 4.4vw, 3.8rem); line-height: 1.02; letter-spacing: -.025em; margin: 14px 0 22px; }
.split .txt p { color: var(--ink-2); max-width: 46ch; }
.link { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.link::after { content: "→"; transition: transform .3s; }
.link:hover::after { transform: translateX(5px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* journal teaser */
.posts { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 56px); }
.post-card img { aspect-ratio: 3/2; object-fit: cover; width: 100%; margin-bottom: 18px; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.post-card .im { overflow: hidden; }
.post-card:hover img { transform: scale(1.035); }
.post-card h3 { font-weight: normal; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -.015em; margin-top: 8px; }
.post-card p { color: var(--ink-2); margin-top: 10px; font-size: 1rem; }
@media (max-width: 760px) { .posts { grid-template-columns: 1fr; } }

/* page head */
.page-head { padding: clamp(140px, 22vh, 220px) 0 clamp(40px, 6vw, 80px); }
.page-head h1 { font-weight: normal; font-size: clamp(3rem, 10vw, 8.5rem); line-height: .92; letter-spacing: -.035em; }
.page-head .row { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 6vw, 96px); margin-top: clamp(28px, 4vw, 56px); align-items: start; }
.page-head .lead { font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.45; color: var(--ink-2); max-width: 52ch; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; font-family: var(--sans); font-size: .82rem; }
.facts dt { color: var(--muted); letter-spacing: .12em; text-transform: uppercase; font-size: .7rem; padding-top: 3px; }
@media (max-width: 760px) { .page-head .row { grid-template-columns: 1fr; } }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 2vw, 28px); row-gap: clamp(48px, 8vw, 120px); padding-bottom: clamp(80px, 10vw, 140px); }
.shot { grid-column: span 12; cursor: zoom-in; }
.shot .im { overflow: hidden; background: var(--paper-2); }
.shot img { width: 100%; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.shot:hover img { transform: scale(1.02); }
.shot figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-family: var(--sans); font-size: .8rem; color: var(--muted); }
.shot figcaption b { font-weight: normal; color: var(--ink); font-family: var(--serif); font-size: 1.02rem; font-style: italic; }
.shot.full { grid-column: 1 / -1; }
.shot.wide { grid-column: 2 / 12; }
.shot.left { grid-column: 1 / 7; }
.shot.right { grid-column: 8 / 13; margin-top: 18vh; }
.shot.port-l { grid-column: 2 / 7; }
.shot.port-r { grid-column: 8 / 12; align-self: end; }
.quote { grid-column: 3 / 11; text-align: center; font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.25; letter-spacing: -.01em; font-style: italic; color: var(--ink-2); padding: 4vh 0; }
@media (max-width: 760px) { .shot, .shot.wide, .shot.left, .shot.right, .shot.port-l, .shot.port-r, .quote { grid-column: 1 / -1; margin-top: 0; } }

/* next series */
.next { display: block; position: relative; overflow: hidden; color: #f4efe7; }
.next img { width: 100%; height: clamp(320px, 60vh, 640px); object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.next:hover img { transform: scale(1.04); }
.next::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.32); }
.next .in { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 10px; }
.next .label { color: rgba(244,239,231,.8); }
.next .t { font-size: clamp(2.6rem, 8vw, 7rem); line-height: 1; letter-spacing: -.03em; }

/* prose / journal */
.prose { max-width: 680px; margin: 0 auto; }
.prose p { margin-bottom: 1.2em; color: var(--ink-2); }
.prose > p:first-of-type::first-letter { float: left; font-size: 4.6em; line-height: .82; padding: 6px 12px 0 0; color: var(--ink); }
.prose h2 { font-weight: normal; font-size: 1.7rem; letter-spacing: -.01em; margin: 1.8em 0 .6em; color: var(--ink); }
.prose figure { margin: 2.4em calc(-1 * min(14vw, 160px)); }
.prose figcaption { font-family: var(--sans); font-size: .8rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 860px) { .prose figure { margin: 2em 0; } }
.article-hero img { width: 100%; height: clamp(300px, 70vh, 760px); object-fit: cover; }

/* about */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 7vw, 120px); align-items: start; }
.about .portrait { position: sticky; top: 110px; }
.about .portrait img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.about h2 { font-weight: normal; font-size: 1.5rem; margin: 2em 0 .6em; }
.about p { color: var(--ink-2); margin-bottom: 1em; }
.cv { list-style: none; border-top: 1px solid var(--line); margin-top: 10px; }
.cv li { display: grid; grid-template-columns: 70px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.cv .y { font-family: var(--sans); font-size: .8rem; color: var(--muted); padding-top: 3px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about .portrait { position: static; } }

/* journal list */
.jlist { list-style: none; border-top: 1px solid var(--line); }
.jlist a { display: grid; grid-template-columns: 160px 1fr 220px; gap: 28px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.jlist h3 { font-weight: normal; font-size: clamp(1.4rem, 2.8vw, 2.3rem); line-height: 1.1; letter-spacing: -.015em; transition: color .3s; }
.jlist a:hover h3 { color: var(--accent); }
.jlist img { aspect-ratio: 3/2; object-fit: cover; }
@media (max-width: 760px) { .jlist a { grid-template-columns: 1fr; gap: 12px; } .jlist img { order: -1; } }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 110px) 0 32px; }
.site-foot .big { font-size: clamp(2.4rem, 7vw, 6.4rem); line-height: .95; letter-spacing: -.035em; }
.site-foot .big em { color: var(--accent); }
.site-foot .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(40px, 6vw, 80px); font-family: var(--sans); font-size: .82rem; color: var(--muted); }
.site-foot .cols a:hover { color: var(--ink); }
.site-foot .cols div { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 600px) { .site-foot .cols { grid-template-columns: 1fr; } }

/* reveal */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } .hero img { animation: none; transform: none; } }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(10,9,8,.94); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .35s; cursor: zoom-out; }
.lb.open { opacity: 1; pointer-events: auto; }
.lb img { max-width: 92vw; max-height: 84vh; width: auto; height: auto; box-shadow: 0 40px 80px rgba(0,0,0,.5); }
.lb .cap { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; color: #cfc7bb; font-family: var(--sans); font-size: .8rem; letter-spacing: .08em; }
.lb button { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #f4efe7; font-size: 2rem; padding: 20px; cursor: pointer; opacity: .7; }
.lb button:hover { opacity: 1; }
.lb .prev { left: 8px; } .lb .next-b { right: 8px; }
.lb .close { top: 28px; right: 16px; transform: none; font-family: var(--sans); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; }

/* 404 */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 60px; }
.nf .big { font-size: clamp(6rem, 26vw, 22rem); line-height: .8; letter-spacing: -.05em; font-style: italic; color: var(--accent); }
.nf p { color: var(--ink-2); margin: 24px 0; }
