/* Andrei Pinter, home
   The photography site's house style: black ground, Big Shoulders for signage, Newsreader for reading.
   Each project lends its own colour to the work index, the way each place does on the photography site. */
@font-face { font-family: "Big Shoulders Display"; src: url(fonts/big-shoulders-display.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(fonts/newsreader.woff2) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(fonts/newsreader-italic.woff2) format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@property --glow { syntax: "<color>"; inherits: true; initial-value: #f2a03d; }

:root {
  --night: #000;
  --paper: #eeece6;
  --ash: #9a978f;
  --line: rgba(238, 236, 230, .15);
  --gold: #e0c285;
  --pad: clamp(16px, 4vw, 56px);
  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { background: var(--night); color: var(--paper); -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--night); font: 400 1.0625rem/1.6 var(--serif); font-optical-sizing: auto; }
a { color: inherit; }
img { display: block; }
h1, h2, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 99; background: var(--paper); color: #000; padding: 8px 12px; }
.skip:focus { top: 12px; }


/* ---------- buttons ---------- */
.btn { display: inline-block; padding: 12px 20px 11px; border: 1px solid var(--paper); background: var(--paper); color: #000; text-decoration: none;
  font: 600 1.05rem/1 var(--display); letter-spacing: .03em; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.btn:hover { background: var(--gold); border-color: var(--gold); }
.btn.quiet { background: transparent; color: var(--paper); border-color: rgba(238, 236, 230, .5); }
.btn.quiet:hover { border-color: var(--paper); background: rgba(238, 236, 230, .08); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; background: #1c1714; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; animation: settle 2.6s var(--ease) both; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.5) 34%, rgba(0,0,0,0) 66%),
              linear-gradient(0deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,0) 40%),
              linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 16%); }
.hero-text { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: clamp(36px, 8vh, 92px); max-width: 64rem; }
.hero h1 { font: 800 clamp(3.4rem, 9.4vw, 10rem)/.84 var(--display); letter-spacing: -.004em; text-transform: uppercase; }
.hero h1 span { display: block; animation: arrive 1.2s var(--ease) both; animation-delay: .25s; }
.hero h1 span + span { font-weight: 200; color: rgba(238, 236, 230, .82); animation-delay: .45s; }
.intro { max-width: 34rem; margin-top: clamp(20px, 3vh, 32px); font-size: clamp(1.1rem, 1.35vw, 1.28rem); line-height: 1.5; color: rgba(238, 236, 230, .9);
  animation: arrive 1.2s var(--ease) both; animation-delay: .75s; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(20px, 3vh, 30px); animation: arrive 1.2s var(--ease) both; animation-delay: .9s; }
.wall { position: absolute; z-index: 2; right: var(--pad); bottom: clamp(36px, 8vh, 92px); text-align: right; font-size: .9rem; line-height: 1.35; color: rgba(238, 236, 230, .72); }
.wall span { display: block; }
.wall span:first-child { color: var(--paper); font-size: 1rem; }
@keyframes settle { from { transform: scale(1.06); opacity: .2; } to { transform: none; opacity: 1; } }
@keyframes arrive { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- section heads ---------- */
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; margin-bottom: clamp(28px, 4vw, 56px); }
.sec-head h2 { font: 800 clamp(3rem, 7vw, 6.5rem)/.85 var(--display); text-transform: uppercase; letter-spacing: -.002em; }
.sec-head p { color: var(--ash); font-style: italic; font-size: 1.1rem; }

/* ---------- work: the index with a live preview ---------- */
.work { position: relative; isolation: isolate; padding: clamp(96px, 12vw, 170px) var(--pad) clamp(60px, 8vw, 110px); overflow: hidden; --glow: #f2a03d;
  transition: --glow .8s var(--ease); }
.work::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(60% 55% at 76% 52%, color-mix(in srgb, var(--glow) 16%, transparent), transparent 70%); }
.projects { position: relative; }
.proj { border-top: 1px solid var(--line); }
.proj:last-child { border-bottom: 1px solid var(--line); }
.pname { display: block; padding: 14px 0 12px; text-decoration: none; }
.pname .t { display: block; font: 250 clamp(2.1rem, 3.7vw, 3.9rem)/.95 var(--display); color: rgba(238, 236, 230, .55);
  transition: color .45s var(--ease), font-weight .45s var(--ease); }
.pname .k { display: block; margin-top: 4px; font-size: .98rem; font-style: italic; color: var(--ash); }
.proj.on .pname .t, .pname:focus-visible .t { color: var(--a); font-weight: 780; }
.pname:focus-visible { outline-offset: 6px; }

.shot { position: relative; display: block; border: 1px solid rgba(238, 236, 230, .16); border-radius: 10px; overflow: hidden; background: #0d0d0d;
  box-shadow: 0 40px 110px -40px color-mix(in srgb, var(--a) 60%, transparent), 0 2px 0 rgba(255, 255, 255, .03) inset; text-decoration: none; }
.url { display: block; padding: 9px 14px 8px; background: #161616; border-bottom: 1px solid rgba(238, 236, 230, .1);
  font: 500 .78rem/1 system-ui, -apple-system, "Segoe UI", sans-serif; color: #9b9b9b; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: #0d0d0d; }
.desc { margin-top: 22px; max-width: 42rem; font-size: 1.12rem; line-height: 1.58; }
.spec { display: flex; flex-wrap: wrap; gap: 6px 30px; margin-top: 18px; color: var(--ash); font-size: .95rem; }
.spec b { margin-right: 6px; font: 700 1.6rem/1 var(--display); color: var(--a); letter-spacing: .01em; }
.links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 18px; }
.links a { text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid var(--a); transition: color .3s; }
.links a:hover { color: var(--a); }

@media (min-width: 1000px) and (hover: hover) {
  .projects { min-height: calc(min(55vw, 900px) * .625 + 330px); }
  .proj { width: 40%; }
  .detail { position: absolute; top: 0; right: 0; width: 55%; max-width: 900px; opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s linear .5s; }
  .proj.on .detail { opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s; }
}
@media (max-width: 999px), (hover: none) {
  .proj { padding-bottom: 40px; }
  .pname .t { font-weight: 700; color: var(--a); }
  .pname { padding: 22px 0 16px; }
}

/* ---------- photographs: two rows that drift as you scroll ---------- */
.photos { padding: clamp(80px, 10vw, 150px) 0 0; }
.photos .sec-head { padding: 0 var(--pad); }
.strip { display: grid; gap: 8px; overflow: hidden; --h: clamp(150px, 31vh, 320px); }
.row { display: flex; gap: 8px; width: max-content; will-change: transform; }
.ph { position: relative; flex: none; height: var(--h); aspect-ratio: var(--r); background: var(--c); overflow: hidden; text-decoration: none; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ph:hover img { transform: scale(1.04); }
.cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 11px; background: linear-gradient(0deg, rgba(0,0,0,.7), rgba(0,0,0,0));
  font: 600 1.15rem/1.1 var(--display); letter-spacing: .01em; opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.cap i { display: block; margin-top: 3px; font: italic 400 .85rem/1.2 var(--serif); color: rgba(238, 236, 230, .8); }
.ph:hover .cap, .ph:focus-visible .cap { opacity: 1; transform: none; }
.ph:focus-visible { outline-offset: -3px; }
.photos-go { padding: clamp(28px, 4vw, 44px) var(--pad) 0; }
/* without the drift (no JavaScript, or reduced motion) each row simply scrolls sideways */
html:not(.js) .strip, .strip.still { overflow-x: auto; }
html:not(.js) .row, .strip.still .row { transform: none !important; }

/* ---------- about + links ---------- */
.close { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: end;
  padding: clamp(110px, 13vw, 190px) var(--pad) clamp(70px, 8vw, 120px); }
.close h2 { font: 800 clamp(3rem, 7vw, 6.5rem)/.85 var(--display); text-transform: uppercase; margin-bottom: 22px; }
.close-text p { max-width: 34rem; font-size: 1.2rem; line-height: 1.55; color: rgba(238, 236, 230, .9); }
.big-links { display: grid; justify-items: start; gap: 4px; justify-self: end; }
.big-links a { font: 300 clamp(2.4rem, 5.6vw, 5.6rem)/.95 var(--display); text-decoration: none; border-bottom: 2px solid var(--line);
  transition: font-weight .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease); }
.big-links a:hover, .big-links a:focus-visible { font-weight: 800; color: var(--gold); border-color: var(--gold); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 22px var(--pad) max(26px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); color: var(--ash); font-size: .9rem; }
.foot a { text-decoration: none; border-bottom: 1px solid var(--line); }
.foot a:hover { color: var(--paper); }

/* ---------- smaller screens ---------- */
@media (max-width: 860px) {
  .close { grid-template-columns: 1fr; }
  .big-links { justify-self: start; grid-template-columns: repeat(2, auto); column-gap: 32px; }
}
@media (max-width: 640px) {
  .hero { min-height: 560px; }
  .hero-img { object-position: 64% 50%; }
  .hero::after { background: linear-gradient(0deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.1) 75%), linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 18%); }
  .hero-text { bottom: 30px; }
  .wall { display: none; }
  .cap { opacity: 1; transform: none; padding: 28px 10px 8px; font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-img, .hero h1 span, .intro, .ctas { animation: none; }
  * { transition: none !important; }
}
