/* Roberto Florencio — website styles. Black & white brand: Ink #231F20, Paper #FFFFFF. */
:root {
  --ink: #231F20;
  --paper: #FFFFFF;
  --stone: #6E6A6B;
  --mist: #F4F3F3;
  --line: #D9D7D7;
  --soft: #A8A4A5;
  --fg: var(--ink);
  --bg: var(--paper);
  --muted: var(--stone);
  --rule: var(--line);
  --serif: 'Bodoni Moda', Didot, 'Bodoni 72', Georgia, serif;
  --sans: 'Jost', Futura, 'Century Gothic', system-ui, sans-serif;
  --side: 260px;
}
.theme-dark { --fg: var(--paper); --bg: var(--ink); --muted: var(--soft); --rule: rgba(255,255,255,.16); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { opacity: .7; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--fg); color: var(--bg); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Type */
.eyebrow, .link-caps, .btn, .btn-outline, .filters a, .post-meta, .side-nav a, .tagline, .field label, .contact-details dt, .services span, .footer-bottom {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .28em; font-weight: 400;
}
.eyebrow { font-size: 12px; color: var(--muted); margin: 0 0 14px; }
.h1, .h2, .post-title, .footer-line { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.08; }
.h1 { font-size: clamp(44px, 6vw, 80px); line-height: 1; }
.h2 { font-size: clamp(34px, 4vw, 56px); }
.lead { font-size: 19px; }
.lead-s { font-size: 18px; }
.link-caps { font-size: 12px; text-decoration: none; display: inline-block; padding: 10px 0; }

.btn, .btn-outline { display: inline-block; font-size: 12px; letter-spacing: .26em; text-decoration: none; padding: 17px 28px; border: 1px solid var(--fg); text-align: center; cursor: pointer; background: transparent; color: var(--fg); }
.btn { background: var(--fg); color: var(--bg); }
.btn:hover, .btn-outline:hover { opacity: .8; }

/* Layout shell: left sidebar on desktop, top bar + hamburger on small screens */
.shell { display: flex; align-items: flex-start; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; width: var(--side); flex: 0 0 var(--side); display: flex; flex-direction: column; justify-content: space-between; padding: 44px 36px 36px; border-right: 1px solid var(--rule); background: var(--bg); }
.main { flex: 1 1 auto; min-width: 0; }
.side-top { display: flex; flex-direction: column; gap: 56px; }
.side-logo { display: flex; flex-direction: column; gap: 18px; text-decoration: none; }
.side-mark { width: 57px; height: 58px; color: var(--fg); }
.side-name { font-family: var(--serif); font-size: 19px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.15; }
.tagline { font-size: 9px; letter-spacing: .36em; font-weight: 300; white-space: nowrap; }
.side .tagline { font-size: 8px; letter-spacing: .2em; }
.side-nav { display: flex; flex-direction: column; }
.side-nav a { display: flex; align-items: center; gap: 0; font-size: 13px; letter-spacing: .26em; text-decoration: none; padding: 11px 0; opacity: .72; }
.side-nav a .dash { display: block; width: 0; height: 1px; margin-right: 0; background: currentColor; transition: width .2s, margin .2s; }
.side-nav a[aria-current] { opacity: 1; font-weight: 500; }
.side-nav a[aria-current] .dash, .side-nav a:hover .dash { width: 22px; margin-right: 12px; }
.side-bottom { display: flex; flex-direction: column; gap: 14px; }
.side-small { font-size: 13px; letter-spacing: .08em; text-decoration: none; opacity: .75; padding: 6px 0; }

.topbar { display: none; position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--rule); padding: 10px 16px 10px 20px; align-items: center; justify-content: space-between; }
.top-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.top-mark { width: 35px; height: 36px; color: var(--fg); }
.top-rule { width: 1px; height: 30px; background: currentColor; opacity: .35; }
.top-words { display: flex; flex-direction: column; gap: 5px; }
.top-name { font-family: var(--serif); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.topbar .tagline { font-size: 7.5px; letter-spacing: .38em; }
.menu summary { list-style: none; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--rule); padding: 20px 24px 28px; display: flex; flex-direction: column; gap: 14px; }
.menu-panel nav { display: flex; flex-direction: column; }
.menu-panel nav a { font-family: var(--serif); font-size: 32px; text-decoration: none; padding: 6px 0; }
.menu-panel nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

@media (max-width: 900px) {
  .shell { display: block; }
  .side { display: none; }
  .topbar { display: flex; }
}

/* Sections */
.wrap { max-width: 1320px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.section { padding-top: 104px; padding-bottom: 128px; }
@media (max-width: 700px) { .wrap { padding-left: 16px; padding-right: 16px; } .section { padding-top: 64px; padding-bottom: 80px; } }

/* Home slider */
.slider { position: relative; height: min(88vh, 900px); min-height: 460px; background: #2C2728; overflow: hidden; color: #fff; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption { position: absolute; left: 40px; bottom: 56px; font-family: var(--sans); font-weight: 400; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; line-height: 1.6; color: #fff; background: rgba(0,0,0,.05); text-shadow: 0 1px 3px rgba(0,0,0,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 9px 14px; max-width: min(60%, 560px); }
.slider-full { height: 100vh; height: 100svh; min-height: 520px; max-height: none; }
.slide-empty { display: flex; align-items: center; justify-content: center; }
.empty-mark { width: 90px; height: 92px; color: rgba(255,255,255,.35); }
.empty-mark.dark { color: var(--fg); margin: 0 auto 24px; }
.slider-controls { position: absolute; right: 40px; bottom: 48px; display: flex; align-items: center; gap: 18px; z-index: 2; }
.dots { display: flex; gap: 10px; }
.dot { width: 28px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; display: flex; align-items: center; }
.dot span { display: block; width: 28px; height: 2px; background: rgba(255,255,255,.45); }
.dot.is-active span { background: #fff; }
.arrow { width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.6); background: rgba(0,0,0,.08); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.arrow svg, .lb-btn svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 700px) {
  .slider { height: 72vh; min-height: 380px; }
  .slide figcaption { left: 16px; bottom: 96px; max-width: calc(100% - 32px); font-size: 10px; letter-spacing: .2em; }
  .slider-full { height: calc(100svh - 61px); min-height: 420px; }
  .slider-controls { left: 16px; right: 16px; bottom: 24px; justify-content: space-between; }
  .dot, .dot span { width: 20px; }
}

/* Recent work */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; margin-bottom: 48px; }
.filters { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.filters a { font-size: 12px; letter-spacing: .24em; text-decoration: none; padding: 12px 0; opacity: .55; }
.filters a[aria-current] { opacity: 1; border-bottom: 1px solid currentColor; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 64px 40px; }
.post-card { display: flex; flex-direction: column; gap: 14px; }
.post-cover { display: block; aspect-ratio: 3 / 2; background: var(--mist); overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.post-cover:hover { opacity: 1; }
.post-cover:hover img { transform: scale(1.03); }
.post-meta { display: flex; align-items: center; gap: 14px; font-size: 11px; letter-spacing: .26em; }
.post-meta .rule { width: 18px; height: 1px; background: var(--rule); }
.post-title { font-size: 28px; }
.post-title a { text-decoration: none; }
.post-card p { margin: 0; font-size: 15px; }
.pager { display: flex; justify-content: center; gap: 16px; margin-top: 72px; }

/* Portfolio galleries (masonry) */
.gallery-page { padding: 12px 12px 96px; }
.masonry { columns: 3 320px; column-gap: 12px; }
.tile { display: block; break-inside: avoid; margin-bottom: 12px; cursor: zoom-in; background: var(--mist); }
.theme-dark .tile { background: #2C2728; }
.tile:hover { opacity: .9; }
.tile img { width: 100%; height: auto; }
.empty-note { padding: 120px 40px; text-align: center; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: #0E0C0D; display: none; align-items: center; justify-content: center; touch-action: pan-y; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: calc(100vw - 160px); max-height: calc(100vh - 110px); object-fit: contain; user-select: none; }
.lb-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 14px 24px; color: rgba(255,255,255,.7); font-size: 11px; letter-spacing: .3em; }
.lb-btn { width: 56px; height: 56px; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-prev, .lb-next { position: absolute; top: 50%; margin-top: -28px; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-dl { color: #fff; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; text-decoration: none; padding: 14px 6px; }
@media (max-width: 700px) { .lightbox img { max-width: 100vw; max-height: calc(100vh - 140px); } .lb-prev, .lb-next { top: auto; bottom: 16px; margin: 0; } }
body.lb-open { overflow: hidden; }

/* Story page */
.story-head { padding-top: 72px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 22px; max-width: 980px; margin-left: 0; }
.story-body { max-width: 680px; }
.story-body p { margin: 0 0 1em; font-size: 18px; }
.story-cover { width: 100%; margin-bottom: 96px; }
.draft-note { margin: 0; padding: 10px 14px; background: var(--mist); color: var(--ink); font-size: 14px; align-self: flex-start; }

/* About */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px 96px; align-items: center; }
.about-photo img, .ph-portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--mist); }
.about-text { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.about-text p { margin: 0; }
.services { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 11px; letter-spacing: .26em; }

/* Contact */
.contact-band { background: var(--mist); color: var(--ink); }
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px 96px; }
.contact-intro { display: flex; flex-direction: column; gap: 22px; }
.contact-intro p { margin: 0; }
.contact-intro .h1 { font-size: clamp(40px, 4.4vw, 64px); line-height: 1.05; }
.contact-details { margin: 18px 0 0; display: grid; gap: 4px; }
.contact-details dt { font-size: 11px; color: var(--stone); margin-top: 14px; }
.contact-details dd { margin: 0; font-size: 18px; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 30px 32px; align-content: start; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full, .full { grid-column: 1 / -1; }
.field label { font-size: 11px; letter-spacing: .26em; color: var(--stone); }
.field input, .field select, .field textarea { font-family: var(--sans); font-weight: 300; font-size: 17px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; color: var(--ink); border-radius: 0; }
.field textarea { resize: vertical; }
.field [aria-invalid] { border-bottom-color: #A1271A; }
.field-error, .form-error { color: #A1271A; font-size: 14px; }
.form-error { grid-column: 1 / -1; margin: 0; }
.form .btn { border: 0; }
.hp { position: absolute; left: -9999px; }
.sent { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.sent p { margin: 0; }
.sent-mark { width: 54px; height: 56px; }
.center-block { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }

/* Footer */
.footer { background: var(--ink); color: var(--paper); }
.theme-dark .footer { border-top: 1px solid rgba(255,255,255,.12); }
.footer-in { padding-top: 48px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 48px; }
.footer-login { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.16); }
.footer-login span { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--soft); }
.btn-light { border-color: #fff; color: #fff; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-line { font-size: 28px; line-height: 1.2; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 72px; }
.footer-cols div { display: flex; flex-direction: column; gap: 10px; }
.footer-cols .eyebrow { color: var(--soft); margin-bottom: 4px; }
.footer-cols a { text-decoration: none; font-size: 16px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.16); padding-top: 22px; font-size: 12px; color: var(--soft); }
@media (max-width: 700px) { .footer-cols { gap: 40px; } }

/* Client galleries */
.client-login { min-height: 100vh; display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); background: var(--paper); color: var(--ink); }
.client-login .art { background: #2C2728 center / cover no-repeat; min-height: 280px; }
.client-login .panel { display: flex; align-items: center; justify-content: center; padding: 56px 24px; }
.login-box { width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.login-box .h2 { font-size: 48px; }
.login-box p { margin: 0; }
.login-box form { width: 100%; display: flex; flex-direction: column; gap: 18px; text-align: left; }
.box-field { display: flex; flex-direction: column; gap: 8px; }
.box-field label { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--stone); }
.box-field input { font: inherit; font-size: 17px; padding: 14px 16px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 0; }
.login-mark { width: 70px; height: 72px; }
.login-box .btn { border: 0; width: 100%; }

.g-head { border-bottom: 1px solid var(--line); }
.g-head .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; max-width: 1440px; }
.g-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.g-cover { position: relative; height: min(70vh, 640px); background: #2C2728 center / cover no-repeat; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; }
.g-cover::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.28); }
.g-cover > div { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 0 20px; }
.g-cover .eyebrow { color: rgba(255,255,255,.85); margin: 0; }
.g-cover .h1 { color: #fff; }
.g-cover .btn-outline { border-color: #fff; color: #fff; }
.g-bar { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.g-bar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 28px; max-width: 1440px; }
.g-sets { display: flex; flex-wrap: wrap; gap: 0 26px; }
.g-sets a { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; padding: 16px 0; opacity: .55; }
.g-sets a[aria-current] { opacity: 1; border-bottom: 1px solid currentColor; }
.g-actions { display: flex; gap: 10px; padding: 10px 0; }
.g-actions .btn, .g-actions .btn-outline { padding: 14px 20px; }
.g-info { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 26px 0 20px; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--stone); }
.g-grid { columns: 3 300px; column-gap: 12px; }
.g-item { position: relative; break-inside: avoid; margin-bottom: 12px; background: var(--mist); }
.g-item > a { display: block; cursor: zoom-in; }
.g-item img { width: 100%; height: auto; }
.g-item .g-tools { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 8px; opacity: 0; transition: opacity .2s; }
.g-item:hover .g-tools, .g-item:focus-within .g-tools, .g-item .g-tools.has-fav { opacity: 1; }
@media (hover: none) { .g-item .g-tools { opacity: 1; } }
.g-tool { width: 44px; height: 44px; border: 0; background: rgba(255,255,255,.94); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); text-decoration: none; }
.g-tool svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.g-tool[aria-pressed="true"] svg { fill: var(--ink); }
.g-video { position: relative; background: #111; margin-bottom: 12px; break-inside: avoid; }
.g-video video { width: 100%; display: block; background: #111; }
.g-video .g-video-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; color: #fff; font-size: 13px; gap: 12px; }
.g-video .g-video-bar a { color: #fff; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; text-decoration: none; }
.g-file { padding: 22px; display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 14px; }
.g-thanks { padding: 56px 20px 64px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; color: var(--stone); }
.g-thanks svg { width: 40px; height: 41px; color: var(--ink); }

/* Shown only to you while the coming soon page is on */
.preview-bar { background: #FFF8E6; color: #231F20; font-size: 14px; text-align: center; padding: 10px 16px; border-bottom: 1px solid #E8D9A8; }
.preview-bar a { color: #231F20; }

/* Photo viewer caption */
.lb-caption { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); max-width: min(80vw, 760px); text-align: center; color: #fff; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; line-height: 1.6; background: rgba(0,0,0,.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 8px 14px; }
.lb-caption[hidden] { display: none; }
@media (max-width: 700px) { .lb-caption { bottom: 84px; font-size: 10px; max-width: calc(100vw - 32px); } }

/* Videography: reel-style grid (vertical and wide videos mix naturally) */
.reels { columns: 4 250px; column-gap: 12px; }
.reel { break-inside: avoid; margin: 0 0 12px; background: #111; }
.reel video { display: block; width: 100%; height: auto; background: #111; }
.reel figcaption { padding: 10px 12px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--fg); background: var(--bg); }
@media (max-width: 700px) { .reels { columns: 2 150px; column-gap: 8px; } .reel { margin-bottom: 8px; } .reel figcaption { font-size: 10px; letter-spacing: .16em; padding: 8px 4px; } }

/* Instagram icon */
.ig { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: -11px; opacity: .85; }
.ig:hover { opacity: 1; }
.ig img { width: 22px; height: 22px; display: block; }
.ig-menu { margin: 6px auto 0; }

/* Aerial page: video row under the photos */
.reels-head { font-family: 'Jost', sans-serif; font-weight: 500; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted, #6b6b6b); margin: 56px 0 16px; }
.reels-head:first-child { margin-top: 0; }

/* Journal: one entry per row, photo beside the words */
.journal-list { display: flex; flex-direction: column; }
.journal-entry { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 56px 0; border-top: 1px solid var(--rule); }
.journal-entry:first-child { border-top: 0; padding-top: 0; }
.journal-text { display: flex; flex-direction: column; gap: 16px; max-width: 460px; }
.journal-text .post-title { font-size: clamp(30px, 3vw, 40px); }
.journal-text p { margin: 0; font-size: 16px; }
@media (max-width: 800px) { .journal-entry { grid-template-columns: 1fr; gap: 20px; padding: 40px 0; } }

/* Slider videos (Aerial, Video pages) */
.slide video { width: 100%; height: 100%; object-fit: cover; display: block; background: transparent; }
/* Tall photos and videos are shown whole: no zooming, no stretching */
.fit-whole img, .fit-whole video { object-fit: contain; }
/* On a phone held upright, wide videos are shown whole too, instead of cropping most of the frame */
/* On a phone held upright, wide photos and videos are shown whole (original shape) instead of being cropped to a tall rectangle.
   The slider frame itself never changes size, so the page doesn't jump between slides. */
@media (orientation: portrait) { .slide img, .slide video { object-fit: contain; } }
.video-tools { display: flex; gap: 10px; }
.video-tools[hidden] { display: none; }
.video-tools .i-pause, .video-tools .i-sound { display: none; }
.slider.is-playing .video-tools .i-pause, .slider.sound-on .video-tools .i-sound { display: block; }
.slider.is-playing .video-tools .i-play, .slider.sound-on .video-tools .i-muted { display: none; }
.video-tools .i-play { fill: #fff; }
@media (max-width: 700px) {
  .slider-controls { gap: 8px; }
  .slider-controls .arrow { width: 42px; height: 42px; flex: 0 0 auto; }
  .slider-controls .arrow svg { width: 22px; height: 22px; }
  .video-tools { gap: 8px; }
  .slider-controls .dots { flex: 1 1 auto; min-width: 0; overflow: hidden; justify-content: center; gap: 6px; }
  .slider-controls .dot, .slider-controls .dot span { width: 14px; flex: 0 0 auto; }
}

/* Home slider on a phone held upright: the frame takes the shape of a landscape photo (3:2),
   so the photo fills it edge to edge with no dark bands. Dots and arrows sit just below it. */
@media (orientation: portrait) and (max-width: 900px) {
  .slider-home { height: auto; min-height: 0; aspect-ratio: 3 / 2; overflow: visible; margin-bottom: 76px; }
  .slider-home .slide { overflow: hidden; }
  .slider-home .slide img { object-fit: cover; }
  .slider-home .slide figcaption { left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 6px 10px; font-size: 9px; letter-spacing: .18em; }
  .slider-home .slider-controls { top: calc(100% + 14px); bottom: auto; left: 16px; right: 16px; justify-content: space-between; }
  .slider-home .dot span { background: rgba(35,31,32,.25); }
  .slider-home .dot.is-active span { background: var(--ink); }
  .slider-home .arrow { border-color: var(--ink); background: transparent; }
  .slider-home .arrow svg { stroke: var(--ink); }
  .slider-home .slide-empty { background: #2C2728; }
  /* Photo sits right under the header; the footer follows straight after the dots and arrows */
  .is-home .shell { min-height: 0; }
  body.is-home { min-height: 100svh; display: flex; flex-direction: column; }
  .is-home .footer { flex: 1 0 auto; }
}

/* Formatted text (Recent Work, Journal, About) */
.rich a { color: var(--fg); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.rich a:hover { opacity: .65; }
.rich strong { font-weight: 500; }
.about-bio p { margin: 0 0 1em; color: var(--muted); }
.about-bio p:first-child { font-size: 19px; color: var(--fg); }
.about-bio p:last-child { margin-bottom: 0; }

/* Client gallery: large-file downloads (Google Drive) */
.g-downloads { display: flex; flex-direction: column; gap: 12px; margin: 0 0 40px; }
.g-dl { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 28px; padding: 22px 24px; border: 1px solid var(--line); background: #fff; }
.g-dl-text { display: flex; flex-direction: column; gap: 4px; }
.g-dl-text strong { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; }
.g-dl-text span { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--stone); }
.g-dl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.g-dl-actions .btn { display: inline-flex; align-items: center; gap: 10px; }
.g-dl-actions .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.g-dl-help { margin: 4px 0 0; font-size: 14px; color: var(--stone); max-width: 760px; }
@media (max-width: 700px) { .g-dl { padding: 18px 16px; } .g-dl-actions { width: 100%; } .g-dl-actions .btn { flex: 1 1 auto; justify-content: center; } }
.g-thanks-line { margin: 0; font-family: var(--sans); font-weight: 400; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; line-height: 1.9; color: var(--stone); }
.g-thanks-mark { display: block; color: var(--ink); }
.g-thanks-mark:hover { opacity: .6; }
.g-thanks .ig { margin: 4px 0 0; }

/* Client gallery: larger video previews */
.g-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 1fr)); gap: 20px; margin: 0 0 28px; }
.g-videos.is-single { grid-template-columns: minmax(0, 1100px); justify-content: center; }
.g-videos .g-video { margin: 0; display: flex; flex-direction: column; }
.g-videos video { width: 100%; height: auto; max-height: 78vh; object-fit: contain; flex: 1 1 auto; }
.g-video-bar { font-size: 13px; }
.g-video-bar a { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: #fff; text-decoration: none; white-space: nowrap; }
.g-video-bar a:hover { opacity: .7; }
.g-video-bar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.g-note { max-width: 680px; margin: 0 0 32px; color: var(--stone); font-size: 16px; }
.g-note p { margin: 0 0 .9em; }
.g-note p:last-child { margin-bottom: 0; }
.g-note strong, .g-note a { color: var(--ink); }

/* Client gallery footer */
.g-foot { margin-top: 96px; background: var(--ink); color: #fff; }
.g-foot-in { max-width: 1440px; margin: 0 auto; padding: 64px 40px 28px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.g-foot-mark { display: block; color: #fff; }
.g-foot-mark svg { width: 38px; height: 39px; display: block; }
.g-foot-mark:hover { opacity: .65; }
.g-foot-line { margin: 0; font-family: var(--sans); font-weight: 400; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; line-height: 1.9; color: var(--soft); }
.g-foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; margin-top: 10px; }
.g-foot-nav a { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: #fff; text-decoration: none; padding: 8px 0; opacity: .8; }
.g-foot-nav a:hover { opacity: 1; }
.g-foot-bottom { width: 100%; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
.g-foot-bottom a { color: var(--soft); text-decoration: none; }
.g-foot-bottom .ig { width: 40px; height: 40px; margin: 0; opacity: .85; }
.g-foot-bottom .ig img { width: 20px; height: 20px; }
@media (max-width: 700px) {
  .g-foot { margin-top: 64px; }
  .g-foot-in { padding: 52px 16px 24px; }
  .g-foot-nav { gap: 2px 20px; }
  .g-foot-bottom { flex-direction: column; gap: 6px; }
}
/* Client gallery: smaller cover title */
.g-cover .h1 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.15; max-width: 900px; }

/* Client gallery: split cover for portrait (vertical) cover photos.
   The photo column takes the photo's own shape, so it's shown whole (never cropped). */
.g-split { display: grid; grid-template-columns: auto 1fr; height: calc(100svh - 65px); min-height: 560px; background: #F5F4F4; color: var(--ink); }
.g-split-photo { height: 100%; min-height: 0; overflow: hidden; }
.g-split-photo img { display: block; height: 100%; width: auto; max-width: 62vw; object-fit: contain; }
.g-split-text { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 56px 6% 150px; }
.g-split-main { display: flex; flex-direction: column; align-items: center; }
.g-split-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.9vw, 46px); line-height: 1.12; letter-spacing: .02em; text-transform: uppercase; }
.g-split-rule { display: block; width: 40px; height: 1px; background: var(--ink); margin: 34px 0 28px; }
.g-split-date { margin: 0; font-family: var(--serif); font-size: 19px; }
.g-split-credit { position: absolute; left: 0; right: 0; bottom: 56px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.g-split-credit p { margin: 0; font-family: var(--sans); font-weight: 400; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--stone); }
.g-split-credit a { display: block; color: var(--ink); }
.g-split-credit a:hover { opacity: .6; }
.g-split-mark { width: 22px; height: 23px; display: block; }
@media (max-width: 800px) {
  .g-split { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .g-split-photo { height: auto; }
  .g-split-photo img { width: 100%; height: auto; max-width: none; }
  .g-split-text { padding: 52px 24px 48px; }
  .g-split-title { font-size: clamp(28px, 8vw, 40px); }
  .g-split-rule { width: 14px; margin: 22px 0 18px; }
  .g-split-credit { position: static; margin-top: 60px; }
}

/* Clickable captions; only the visible slide can be clicked */
.slide { pointer-events: none; }
.slide.is-active { pointer-events: auto; }
.slide figcaption a, .lb-caption a { color: inherit; text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.slide figcaption a:hover, .lb-caption a:hover { opacity: .75; }

/* Client gallery: select & download */
.g-actions .btn-outline { padding: 14px 20px; }
.g-selecting [data-fid] { cursor: pointer; }
.g-selecting [data-fid] > *:not(.g-check) { pointer-events: none; }
.g-selecting .g-tools, .g-selecting .g-video-bar a { visibility: hidden; }
.g-check { position: absolute; top: 10px; left: 10px; z-index: 3; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #fff; background: rgba(0,0,0,.25); box-shadow: 0 1px 4px rgba(0,0,0,.3); display: none; }
.g-selecting .g-check { display: block; }
.is-picked .g-check { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; border-color: #fff; }
.g-selecting [data-fid] { transition: opacity .15s; }
.g-selecting .g-grid [data-fid]:not(.is-picked) img { opacity: .82; }
.is-picked { outline: 3px solid var(--ink); outline-offset: -3px; }
.g-video, .g-item { position: relative; }
.g-selbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(0,0,0,.06); }
.g-selbar-in { max-width: 1440px; margin: 0 auto; padding: 12px 40px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.g-sel-count { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.g-selbar .link-caps { background: none; border: 0; cursor: pointer; padding: 10px 0; font: inherit; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.g-sel-grow { flex: 1 1 auto; }
.g-selbar .btn[disabled] { opacity: .35; cursor: default; }
.g-selecting .g-thanks, .g-selecting .g-foot { padding-bottom: 80px; }
.g-dlbox { position: fixed; inset: 0; z-index: 60; background: rgba(20,18,18,.55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.g-dlbox[hidden], .g-selbar[hidden] { display: none; }
.g-dlbox-in { width: min(520px, 100%); background: var(--paper); padding: 32px 30px 26px; display: flex; flex-direction: column; gap: 14px; }
.g-dl-title { margin: 0; font-family: var(--serif); font-size: 26px; }
.g-dl-bar { height: 3px; background: var(--line); overflow: hidden; }
.g-dl-bar span { display: block; height: 100%; width: 0; background: var(--ink); transition: width .25s; }
.g-dl-sub { margin: 0; font-size: 14px; color: var(--stone); min-height: 1.4em; }
.g-dl-btns { display: flex; justify-content: flex-end; }
@media (max-width: 700px) {
  .g-selbar-in { padding: 10px 16px; gap: 6px 16px; }
  .g-sel-count { width: 100%; }
  .g-selbar .btn { width: 100%; margin-top: 4px; }
  .g-actions { width: 100%; }
  .g-actions .btn, .g-actions .btn-outline { flex: 1 1 auto; text-align: center; }
}

/* Sidebar: logo centred; menu items left-aligned, sliding to the centre on hover and for the page you're on */
.side-top, .side-logo, .side-bottom { align-items: center; text-align: center; }
.side-name { padding-left: .06em; }
.side-logo .tagline { padding-left: .2em; }
.side-nav { align-self: stretch; align-items: stretch; }
.side-nav a { position: relative; display: block; text-align: left; padding: 11px 0; }
.side-nav a .lbl, .menu-panel nav a .lbl { display: inline-block; transition: transform .35s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.side-nav a:hover .lbl, .side-nav a[aria-current] .lbl, .menu-panel nav a[aria-current] .lbl { transform: translateX(var(--shift, 0px)); }
.side-nav a::after { content: ''; position: absolute; left: 50%; bottom: 4px; width: 0; height: 1px; background: currentColor; transform: translateX(-50%); transition: width .25s .1s; }
.side-nav a[aria-current]::after, .side-nav a:hover::after { width: 22px; }
.side-bottom .ig { margin-left: 0; }
/* Instagram icon right under Contact (sidebar + phone menu) */
.side-nav a.side-ig { display: flex; align-items: center; justify-content: flex-start; width: 44px; height: 40px; padding: 0; margin: 6px 0 0 -12px; opacity: .8; }
.side-nav a.side-ig::after { display: none; }
.side-nav a.side-ig:hover { opacity: 1; }
.side-ig img { width: 20px; height: 20px; }
.menu-panel { height: calc(100svh - 61px); max-height: none; overflow-y: auto; padding: 10px 24px 18px; display: flex; flex-direction: column; }
/* Phone menu fills the screen: big items spread evenly, Instagram pinned to the bottom */
.menu-panel nav { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.menu-panel nav a { flex: 1 1 0; display: flex; align-items: center; min-height: 40px; max-height: 76px; font-size: clamp(24px, 4.3svh, 36px); padding: 0; line-height: 1.1; text-decoration: none; }
.menu-panel nav a[aria-current] { text-decoration: none; }
.menu-panel nav a[aria-current] .lbl { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.menu-panel nav a.ig-menu { flex: 0 0 auto; width: 44px; height: 44px; min-height: 0; margin: auto 0 0 -11px; padding: 0; justify-content: center; }
.ig-menu img { width: 20px; height: 20px; }
