/* ============================================================
   ryanweissphotography.com — standalone design
   Independent of the doubleV brand book. Dark editorial gallery.
   ============================================================ */

:root{
  --ink:#0B0B0C;
  --ink-2:#131316;
  --ink-3:#1B1B1F;
  --line:rgba(255,255,255,.10);
  --line-2:rgba(255,255,255,.18);
  --paper:#EFECE7;
  --paper-dim:#A7A49F;
  --paper-mute:#75726E;
  --accent:#3E9BE0;          /* cyan-leaning blue, clear of violet */
  --accent-soft:#7FC3EE;
  --accent-2:#D18FA6;         /* quiet rose, a nod to the doubleV blush */
  --max:1280px;
  --ease:cubic-bezier(.22,.61,.36,1);
}

*{box-sizing:border-box}

html{-webkit-text-size-adjust:100%}

body{
  margin:0;
  background:var(--ink);
  color:var(--paper);
  font-family:"DM Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  font-size:17px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{max-width:100%;display:block}
a{color:inherit}

.wrap{
  width:100%;
  max-width:var(--max);
  margin:0 auto;
  padding-inline:24px;
}

/* ---------- type ---------- */
.display{
  font-family:"DM Sans",system-ui,-apple-system,sans-serif;
  font-weight:500;
  letter-spacing:-.03em;
  line-height:.94;          /* tight enough that the y of "ryan" and the h of
                               "photography" interlock rather than just stack */
  margin:0;
}
.label{
  font-size:11.5px;
  letter-spacing:.20em;
  text-transform:uppercase;
  color:var(--paper-mute);
  margin:0 0 18px;
  font-weight:500;
}
.lede{
  font-size:clamp(18px,2.1vw,21px);
  line-height:1.6;
  color:var(--paper-dim);
  max-width:56ch;
}

/* ---------- header ---------- */
.topbar{
  position:fixed;
  inset:0 0 auto 0;
  z-index:60;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 24px;
  transition:background .4s var(--ease),border-color .4s var(--ease),backdrop-filter .4s var(--ease);
  border-bottom:1px solid transparent;
}
.topbar.solid{
  background:rgba(11,11,12,.82);
  backdrop-filter:saturate(140%) blur(14px);
  -webkit-backdrop-filter:saturate(140%) blur(14px);
  border-bottom-color:var(--line);
}
.sig{
  display:flex;
  align-items:baseline;
  gap:10px;
  white-space:nowrap;
  text-decoration:none;
  font-family:"DM Sans",system-ui,-apple-system,sans-serif;
  font-weight:500;
  letter-spacing:-.01em;
  font-size:19px;
  letter-spacing:.01em;
}
.sig .dot{
  width:5px;height:5px;border-radius:50%;
  background:var(--accent-2);
  transform:translateY(-4px);
  flex:none;
}
.nav{display:flex;align-items:center;gap:4px}
.nav a{
  text-decoration:none;
  font-size:13px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--paper-dim);
  padding:8px 11px;
  border-radius:999px;
  transition:color .25s var(--ease),background .25s var(--ease);
}
.nav a:hover{color:var(--paper);background:rgba(255,255,255,.07)}
.nav a.home-link{color:var(--paper-mute)}
@media (max-width:720px){
  .nav a.home-link{display:none}
  .nav a{padding:8px 7px;font-size:12px;letter-spacing:.04em}
}
@media (max-width:620px){
  .topbar{padding:12px 16px}
  .sig{font-size:17px}
  .nav a{padding:7px 6px;font-size:11.5px}
  .wrap{padding-inline:18px}
  .hero-sub{font-size:11.5px;letter-spacing:.10em;gap:8px 12px}
}

/* ---------- hero ----------
   Full-bleed background feel WITHOUT cropping the photo:
   - .hero-bg  = the same image, blown up, blurred and dimmed, covering the frame
   - .hero-photo = the real photo, object-fit:contain, so it is never cropped
   Padding on .hero-photo keeps the picture clear of the topbar and the headline. */
.hero{
  position:relative;
  min-height:min(94svh,900px);
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  border-bottom:1px solid var(--line);
}
.hero-media{position:absolute;inset:0;z-index:0}
.hero-media .ph{position:absolute;inset:0}

.hero-bg{
  position:absolute;
  inset:0;
  width:100%;height:100%;
  object-fit:cover;
  transform:scale(1.12);
  filter:blur(46px) saturate(.8) brightness(.40);
  opacity:.9;
}
.hero-photo{
  position:absolute;
  inset:0;
  width:100%;height:100%;
  object-fit:contain;
  padding:86px 24px 246px;
}
.hero-media::after{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(to top,
    rgba(11,11,12,.96) 0%,
    rgba(11,11,12,.80) 16%,
    rgba(11,11,12,.18) 34%,
    rgba(11,11,12,0) 52%,
    rgba(11,11,12,0) 80%,
    rgba(11,11,12,.55) 100%);
}
.hero .wrap{
  position:relative;
  z-index:1;
  padding-block:0 clamp(40px,8vh,86px);
}
.hero h1{
  font-size:clamp(46px,10.5vw,124px);
  margin:0 0 20px;
}
.hero h1 .thin{color:var(--paper-dim)}
/* The headline runs at -.03em, which is right for "photography" but pulls the
   r of "ryan" into the y. This opens that one pair back up and nothing else. */
.hero h1 .k{letter-spacing:-.008em}
.hero-sub{
  display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;
  font-size:13px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--paper-dim);
}
.hero-sub .sep{width:4px;height:4px;border-radius:50%;background:var(--accent);flex:none}
.hero-where{margin-top:10px;color:var(--paper-mute)}
.hero-where .sep{background:var(--paper-mute)}

@media (max-width:760px){
  .hero-photo{padding:78px 16px 262px}
  .hero-bg{filter:blur(34px) saturate(.8) brightness(.42)}
}

/* ---------- bare hero (type only, no photos yet) ----------
   Used while the page has no images. The photo hero rules above are kept
   intact for when the gallery version comes back (see _wip/).            */
.hero.bare{
  min-height:min(76svh,740px);
  padding-top:66px;
  background:
    radial-gradient(115% 78% at 12% 0%, rgba(201,162,39,.07), transparent 58%),
    linear-gradient(to bottom, #131318 0%, var(--ink) 72%);
}
.hero.bare .wrap{padding-block:0 clamp(44px,8vh,88px)}
.hero.bare h1{
  font-size:clamp(36px,7.6vw,90px);
  margin:0;
}
.soon{
  margin:34px 0 0;
  font-family:"DM Sans",system-ui,-apple-system,sans-serif;
  font-style:italic;
  font-size:15.5px;
  color:var(--paper-mute);
}
.accent-rule{
  width:62px;height:1px;border:0;
  background:linear-gradient(90deg,var(--accent) 0%,var(--accent) 52%,var(--accent-2) 100%);
  margin:28px 0 24px;
}

/* ---------- sections ---------- */
section{scroll-margin-top:78px}
.band{padding-block:clamp(72px,11vh,124px)}
.band + .band{border-top:1px solid var(--line)}
.band-head{
  display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;
  gap:20px;margin-bottom:clamp(32px,5vw,54px);
}
.band-head h2{font-size:clamp(27px,4.0vw,43px)}
.band-head .note{font-size:14px;color:var(--paper-mute);margin:0}

/* ---------- work grid (justified rows) ----------
   Each .row is an aspect-ratio box; each .shot grows in proportion to its
   own aspect (--a), so every row lands flush with no gaps or ragged edges.
   Row aspect (--s) is the sum of its children's --a values.              */
.grid{display:flex;flex-direction:column;gap:14px}
.row{
  display:flex;
  gap:14px;
  width:100%;
  aspect-ratio:var(--s);
}
.shot{
  position:relative;
  flex:var(--a) 1 0;
  min-width:0;
  height:100%;
  overflow:hidden;
  border:1px solid var(--line);
  background:var(--ink-2);
  cursor:zoom-in;
  padding:0;margin:0;
  appearance:none;-webkit-appearance:none;
  color:inherit;font:inherit;text-align:left;
}
.shot img{width:100%;height:100%;object-fit:cover;transition:transform 1.1s var(--ease)}
.shot:hover img,.shot:focus-visible img{transform:scale(1.035)}
.shot figcaption{
  position:absolute;inset:auto 0 0 0;
  padding:34px 16px 14px;
  font-size:12.5px;letter-spacing:.10em;text-transform:uppercase;
  color:var(--paper);
  background:linear-gradient(to top,rgba(11,11,12,.88),transparent);
  opacity:0;transform:translateY(6px);
  transition:opacity .35s var(--ease),transform .35s var(--ease);
}
.shot:hover figcaption,.shot:focus-visible figcaption{opacity:1;transform:none}
.shot:focus-visible{outline:2px solid var(--accent-soft);outline-offset:2px}

@media (max-width:760px){
  .grid{gap:12px}
  .row{display:block;aspect-ratio:auto}
  .row + .row{margin-top:12px}
  .shot{
    display:block;width:100%;height:auto;
    aspect-ratio:var(--am,var(--a));
  }
  .row > .shot + .shot{margin-top:12px}
  .shot figcaption{opacity:1;transform:none;padding-top:28px}
}

/* image placeholder (shown until a real file exists) */
.ph{
  position:relative;
  width:100%;height:100%;
  background:
    repeating-linear-gradient(135deg,rgba(255,255,255,.022) 0 12px,transparent 12px 24px),
    linear-gradient(150deg,var(--ink-3),var(--ink-2));
  display:flex;align-items:center;justify-content:center;
}
.ph span{
  font-size:10.5px;letter-spacing:.20em;text-transform:uppercase;
  color:var(--paper-mute);
  padding:0 12px;text-align:center;
}

/* ---------- about ---------- */
.about h2{
  margin:0 0 26px;
  font-size:clamp(27px,3.9vw,42px);
}
.prose p{margin:0 0 18px;color:var(--paper-dim);max-width:62ch;font-size:clamp(17px,1.6vw,19px)}
.prose p:last-child{margin-bottom:0}
.prose strong{color:var(--paper);font-weight:500}

/* ---------- recent albums (kept quiet on purpose) ---------- */
.album-list{list-style:none;margin:0;padding:0;max-width:640px}
.album-list li{
  border-bottom:1px solid var(--line);
  padding-bottom:12px;
}
.album-list li:first-child{border-top:1px solid var(--line)}
.album-list a{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:6px 16px;
  justify-content:space-between;
  padding:14px 0 2px;
  text-decoration:none;
  font-size:16.5px;
  color:var(--paper-dim);
  transition:color .25s var(--ease);
}
.album-list a:hover{color:var(--paper)}
.album-list .when{
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--paper-mute);
  white-space:nowrap;
}
.credit{
  margin:6px 0 0;
  font-size:13.5px;
  line-height:1.5;
  color:var(--paper-mute);
}
.credit a{
  display:inline;
  font-size:inherit;
  color:var(--paper-dim);
  text-decoration:none;
  border-bottom:1px solid var(--line-2);
  padding:0;
}
.credit a:hover{color:var(--paper);border-bottom-color:var(--accent)}

.caveat{
  margin:18px 0 0;
  font-size:14px;
  line-height:1.6;
  color:var(--paper-mute);
  max-width:52ch;
}

/* ---------- contact ----------
   Two equal channels, each an icon plus a label, so neither line reads as a
   value belonging to the other.                                            */
.contact{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:24px;
}
.mail,
.ig{
  font-family:"DM Sans",system-ui,-apple-system,sans-serif;
  font-weight:500;
  letter-spacing:-.02em;
  line-height:1.1;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:.34em;
  background-image:linear-gradient(var(--accent),var(--accent));
  background-size:0% 1px;
  background-repeat:no-repeat;
  background-position:0 100%;
  transition:background-size .5s var(--ease),color .3s var(--ease);
}
.mail{font-size:clamp(21px,3.3vw,36px);color:var(--paper)}
.ig{font-size:clamp(21px,3.3vw,36px);color:var(--paper-dim)}
.mail svg,
.ig svg{
  width:.86em;
  height:.86em;
  flex:none;
  stroke-width:1.5;
  opacity:.85;
}
.ig .handle{white-space:nowrap}
.at{font-size:.74em;color:var(--paper-mute)}
.mail:hover,
.ig:hover{background-size:100% 1px}
.ig:hover{color:var(--paper)}
.ig:hover .at{color:var(--paper-dim)}
.mail-fallback{
  font-family:"DM Sans",system-ui,sans-serif;
  font-size:15px;
  color:var(--paper-mute);
  background-image:none;
}

/* ---------- footer ---------- */
footer.foot{
  border-top:1px solid var(--line);
  padding-block:30px 40px;
}
footer.foot .wrap{
  display:flex;flex-wrap:wrap;gap:12px 24px;
  align-items:center;justify-content:space-between;
  font-size:13px;color:var(--paper-mute);
}
footer.foot a{text-decoration:none;border-bottom:1px solid var(--line-2);padding-bottom:1px}
footer.foot a:hover{color:var(--paper)}

/* ---------- lightbox ---------- */
.lb{
  position:fixed;inset:0;z-index:100;
  display:none;
  align-items:center;justify-content:center;
  background:rgba(7,7,8,.95);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  padding:56px 20px 72px;
}
.lb.open{display:flex}
.lb figure{margin:0;max-width:min(1180px,100%);max-height:100%;display:flex;flex-direction:column;gap:14px}
.lb .stage{display:flex;align-items:center;justify-content:center;min-height:0}
.lb img{max-height:76svh;width:auto;object-fit:contain}
.lb .ph{aspect-ratio:3/2;width:min(900px,86vw);max-height:76svh}
.lb figcaption{
  font-size:12.5px;letter-spacing:.12em;text-transform:uppercase;
  color:var(--paper-dim);text-align:center;
}
.lb-btn{
  position:absolute;
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
  color:var(--paper);
  width:44px;height:44px;border-radius:50%;
  display:grid;place-items:center;
  cursor:pointer;font-size:18px;line-height:1;
  transition:background .25s var(--ease),border-color .25s var(--ease);
}
.lb-btn:hover{background:rgba(255,255,255,.14);border-color:var(--line-2)}
.lb-close{top:16px;right:16px}
.lb-prev{left:16px;top:50%;transform:translateY(-50%)}
.lb-next{right:16px;top:50%;transform:translateY(-50%)}
@media (max-width:600px){
  .lb-prev{left:12px}.lb-next{right:12px}
  .lb-btn{width:40px;height:40px}
}

/* ---------- reveal ---------- */
.rv{opacity:0;transform:translateY(16px);transition:opacity .8s var(--ease),transform .8s var(--ease)}
.rv.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .rv{opacity:1;transform:none;transition:none}
  .shot img{transition:none}
  *{scroll-behavior:auto}
}
