/* ===== Biff Photography — shared styles ===== */
:root {
  --cream: #f4ecdc;
  --cream-2: #ebe2cf;
  --tan: #e4d8bf;
  --line: #d6c8ab;
  --olive: #4a5233;
  --rust: #a4623f;
  --ink: #2a2a24;
  --dark: #23231f;
  --dark-line: #3d3d36;
  --light: #f4ecdc;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Karla', system-ui, sans-serif;
  --wrap: 1000px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

.eyebrow {
  font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--olive); font-weight: 500;
}

/* ===== Logo ===== */
.logo {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  background: #0b0b0b; color: #fff; overflow: hidden;
  width: 72px; height: 40px; line-height: 1;
}
.logo img { width: 100%; height: 100%; object-fit: contain; }
.logo .logo-text { display: none; text-align: center; }
.logo.no-img .logo-text { display: block; }
.logo .logo-text > span { display: block; }
.logo.no-img img { display: none; }
.logo .bp { font-family: var(--serif); font-size: 15px; letter-spacing: -.02em; }
.logo .name { font-family: var(--serif); font-size: 6px; margin-top: 2px; }
.logo .tag { font-size: 3.5px; opacity: .8; margin-top: 1px; }

.logo--round { width: 124px; height: 124px; border-radius: 50%; }
.logo--round .bp { font-size: 34px; }
.logo--round .name { font-size: 12px; margin-top: 4px; }
.logo--round .tag { font-size: 7px; margin-top: 3px; }

/* ===== Top nav (appears on scroll) ===== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 51px;
  background: var(--dark); color: var(--light);
  transform: translateY(-100%); transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.nav.show { transform: none; }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: flex; gap: 22px; }
.nav-links a {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700;
}
.nav-links a:hover { opacity: .7; }

/* ===== Arrow link ===== */
.arrow-link {
  display: inline-flex; align-items: center; gap: 28px;
  font-size: 10px; letter-spacing: .28em; text-transform: uppercase; font-weight: 700;
  color: var(--olive); padding-bottom: 10px; border-bottom: 1px solid currentColor;
}
.arrow-link svg { width: 16px; height: 16px; transition: transform .3s; }
.arrow-link:hover svg { transform: translateX(4px); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; align-items: center;
}
.hero-stage {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.hero-glow {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  left: calc(50% + 90px); top: 50%; transform: translate(-50%, -55%);
  background: radial-gradient(circle, #f2e8d6 0 48%, #ecdfc6 50%, rgba(236,223,198,.0) 72%);
}
.hero-camera {
  position: absolute; left: calc(50% + 90px); top: 50%;
  width: min(520px, 46vw); transform: translate(-50%, -52%);
  transform-origin: 58% 61%;
}
.hero-camera img { width: 100%; filter: drop-shadow(0 18px 18px rgba(60,40,10,.18)); }
.hero-camera.no-img { aspect-ratio: 1.45; }
.hero-camera.no-img img { display: none; }
.hero-camera.no-img::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 60%; aspect-ratio: 1;
  border-radius: 50%; border: 1px solid var(--line);
  box-shadow: 0 0 0 26px transparent, inset 0 0 0 30px transparent;
  background:
    radial-gradient(circle, transparent 0 46%, var(--line) 46.3% 46.8%, transparent 47.1% 62%, var(--line) 62.3% 62.8%, transparent 63.1%);
}

.hero-copy { position: relative; z-index: 2; padding-left: max(24px, calc(50% - 475px)); }
.hero-title {
  font-family: var(--serif); font-weight: 400; color: var(--olive);
  font-size: clamp(64px, 8.6vw, 132px); line-height: .76; letter-spacing: -.035em;
  margin-bottom: 36px;
}
.hero-title span { display: block; }
.hero-title span + span { margin-top: 10px; }
.hero-copy p { font-size: 13.5px; color: var(--ink); max-width: 190px; }
.hero-copy p + p { margin-top: 20px; }
.hero-copy .arrow-link { margin-top: 30px; min-width: 178px; justify-content: space-between; }

.hero-marker {
  position: absolute; left: 30px; bottom: 20px; z-index: 2;
  font-size: 8px; letter-spacing: .28em;
}

/* Lens zoom transition overlay */
.lens-overlay {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background: #0d0d0b; opacity: 0;
}
body.zooming .hero-camera {
  transition: transform 1.1s cubic-bezier(.7,0,.3,1);
  transform: translate(-50%, -52%) scale(14);
}
body.zooming .hero-copy, body.zooming .hero-glow, body.zooming .hero-marker {
  transition: opacity .5s; opacity: 0;
}
body.zooming .lens-overlay { transition: opacity .45s .7s; opacity: 1; }

/* Page fade-in after zoom */
.page-intro {
  position: fixed; inset: 0; z-index: 100; background: #0d0d0b; pointer-events: none;
  animation: introOut .9s .05s ease forwards;
}
@keyframes introOut { to { opacity: 0; visibility: hidden; } }

/* ===== What I photograph ===== */
.services { background: var(--tan); padding: 50px 0 50px; }
.services h2 {
  font-family: var(--serif); font-weight: 400; color: var(--olive);
  font-size: clamp(38px, 3.6vw, 50px); margin-bottom: 20px;
}
.service-list { list-style: none; border-top: 1px solid var(--line); }
.service-list a {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px;
  padding: 20px 0; border-bottom: 1px solid var(--line); transition: padding .3s, background .3s;
}
.service-list a:hover { padding-left: 10px; }
.service-list .s-name {
  font-family: var(--serif); color: var(--olive); font-size: 28px; display: flex; align-items: baseline; gap: 18px;
}
.service-list .s-num { color: var(--rust); font-size: 20px; }
.service-list .s-desc { text-align: right; font-size: 14.5px; }
.service-list .s-desc--wide { margin-left: -15px; }

/* ===== Dark CTA ===== */
.dark { background: var(--dark); color: var(--light); }
.cta { padding: 130px 0 70px; overflow: hidden; }
.cta .wrap { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px; }
.cta h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 3.6vw, 50px); line-height: 1.1; }
.cta p { margin-top: 18px; max-width: 380px; font-size: 14.5px; }
.cta-actions { display: flex; align-items: center; gap: 26px; margin-top: 40px; }
.cta .arrow-link { color: var(--light); }
.cta .plain-link { font-size: 14px; border-bottom: 1px solid currentColor; line-height: 1.2; }
.rings { position: relative; width: 320px; aspect-ratio: 1; justify-self: center; }
.rings span { position: absolute; inset: 0; margin: auto; border: 1px solid rgba(244,236,220,.32); border-radius: 50%; }
.rings span:nth-child(2) { width: 75%; height: 75%; }
.rings span:nth-child(3) { width: 52%; height: 52%; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--dark-line); padding: 40px 0 46px; font-size: 13.5px; }
.footer .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; }
.footer .logo { margin-left: 38px; }
.footer .blurb { margin-top: 20px; max-width: 240px; }
.footer .copy { margin-top: 30px; font-size: 12px; }
.footer-links { display: flex; gap: 16px; padding-top: 10px; }
.footer-links a:hover, .cta .plain-link:hover { opacity: .7; }

/* ===== PORTFOLIO PAGE ===== */
.p-header { padding: 42px 0 0; }
.p-header .top { display: flex; gap: 40px; align-items: flex-start; }
.p-header h1 {
  font-family: var(--serif); font-weight: 400; color: var(--olive);
  font-size: clamp(40px, 3.8vw, 52px); line-height: 1.1; margin-top: 18px;
}
.p-header .lede { margin-top: 18px; max-width: 460px; font-size: 14.5px; }
.p-header .logo--round { margin-top: 0; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; padding-bottom: 66px; border-bottom: 1px solid var(--line); }
.cat-nav a { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--olive); }
.cat-nav a:hover { color: var(--rust); }

.cat {
  display: grid; grid-template-columns: 1fr 1fr 400px; align-items: center; gap: 24px;
  padding: 40px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 60px;
}
.cat.flip { grid-template-columns: 400px 1fr 1fr; }
.cat.flip .gallery { order: -1; }
.cat-title .num { font-family: var(--serif); color: var(--rust); font-size: 27px; line-height: 1; }
.cat-title h2 { font-family: var(--serif); font-weight: 400; color: var(--olive); font-size: 34px; line-height: 1.2; }
.cat-desc { font-size: 14.5px; line-height: 1.7; max-width: 310px; }
.cat:target .cat-title h2 { color: var(--rust); transition: color 1.2s; }

/* Gallery / carousel */
.gallery { width: 100%; }
.frame {
  position: relative; width: 100%; background: var(--cream-2); border: 1px solid var(--line);
  overflow: hidden;
}
.frame img { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.frame img.on { opacity: 1; }
.frame[data-ratio="portrait"] { aspect-ratio: 400 / 525; }
.frame[data-ratio="landscape"] { aspect-ratio: 400 / 267; }
.frame[data-ratio="placeholder"] { aspect-ratio: 400 / 300; }
.frame .ph { position: absolute; inset: 0; display: none; }
.frame.empty .ph { display: block; }
.frame .ph span { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px solid #c9bba0; width: 54%; aspect-ratio: 1; height: auto; top: 50%; transform: translateY(-50%); bottom: auto; }
.frame .ph span:nth-child(2) { width: 40%; }
.frame .ph span:nth-child(3) { width: 28%; }
.frame.fill img { object-fit: cover; }

.g-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.g-count { font-size: 10px; letter-spacing: .25em; color: var(--olive); }
.g-btns { display: flex; gap: 10px; }
.g-btns button {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ink);
  display: grid; place-items: center; transition: background .2s, color .2s;
}
.g-btns button:hover { background: var(--ink); color: var(--cream); }
.g-btns svg { width: 12px; height: 12px; }
.gallery.single .g-controls { display: none; }

/* Contact */
.contact { position: relative; overflow: hidden; padding: 52px 0 20px; }
.contact .rings { position: absolute; left: -160px; top: 25px; width: 320px; }
.contact .grid { display: grid; grid-template-columns: 1fr 395px; gap: 40px; padding-bottom: 52px; border-bottom: 1px solid var(--dark-line); }
.contact h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 3.6vw, 48px); line-height: 1.1; margin-top: 4px; }
.contact .grid > div:first-child p { margin-top: 22px; max-width: 400px; font-size: 14.5px; }
.c-list { list-style: none; border-top: 1px solid var(--dark-line); }
.c-list li { border-bottom: 1px solid var(--dark-line); }
.c-list a, .c-list .row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 12px; }
.c-list .label { font-size: 9px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; display: block; }
.c-list .value { font-family: var(--serif); font-size: 17px; }
.c-list .value.big { font-size: 24px; }
.c-list svg { width: 16px; height: 16px; transition: transform .3s; }
.c-list a:hover svg { transform: translateX(4px); }
.photog { display: flex; align-items: center; gap: 26px; padding: 20px 0 30px; }
.photog .pic { width: 158px; aspect-ratio: 158 / 237; background: #111; overflow: hidden; }
.photog .pic img { width: 100%; height: 100%; object-fit: cover; }
.photog .pic.no-img img { display: none; }
.photog .label { font-size: 9px; letter-spacing: .26em; text-transform: uppercase; font-weight: 700; }
.photog .name { font-size: 13.5px; margin-top: 6px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s, transform .8s; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero { align-items: flex-end; padding: 0 0 90px; }
  .hero-glow { left: 50%; top: 34%; width: 440px; height: 440px; }
  .hero-camera { left: 50%; top: 32%; width: 82vw; }
  .hero-title { font-size: clamp(54px, 15vw, 96px); }
  .cta .wrap, .contact .grid { grid-template-columns: 1fr; gap: 28px; }
  .service-list a { grid-template-columns: 1fr; gap: 6px; }
  .service-list .s-desc { text-align: left; }
  .service-list .s-desc--wide { margin-left: 0; }
  .rings { width: 220px; }
  .footer .wrap { grid-template-columns: 1fr; }
  .footer .logo { margin-left: 0; }
  .cat, .cat.flip { grid-template-columns: 1fr; gap: 16px; }
  .cat.flip .gallery { order: 0; }
  .p-header .top { flex-direction: column-reverse; gap: 10px; }
  .p-header .logo--round { width: 96px; height: 96px; }
  .contact .rings { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
