/* Enercare billing portal case study styles (moved out of the page so the browser can cache them) */
:root {
  --font-head: "Merriweather", Georgia, "Times New Roman", serif;
  --font-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --page-bg: #101213;
  --surface: #16191c;
  --surface-border: rgba(255,255,255,.08);
  --text: #ffffff;
  --text-soft: #c9ced6;
  --text-muted: #7f8792;
  --accent: #f45a0a;
  --accent-hover: #ff6d22;
  --on-accent: #ffffff;
  --toggle-bg: rgba(255,255,255,.08);
  --toggle-border: rgba(255,255,255,.16);
  --glass-bg: linear-gradient(145deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.05) 100%);
  --glass-border: rgba(255,255,255,.22);
  --glass-highlight: rgba(255,255,255,.28);
  --glass-shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 18px;
  --gap: 20px;
  --page-pad: clamp(16px, 2.5vw, 48px);
  --content: 1120px;
}

:root[data-theme="light"] {
  --page-bg: #f4f2ee;
  --surface: #ffffff;
  --surface-border: rgba(0,0,0,.08);
  --text: #161616;
  --text-soft: #4a4f57;
  --text-muted: #6b6b6b;
  --accent: #d94e05;
  --accent-hover: #bf4404;
  --toggle-bg: #ffffff;
  --toggle-border: rgba(0,0,0,.12);
  --glass-bg: linear-gradient(145deg, rgba(255,255,255,.75) 0%, rgba(255,255,255,.35) 100%);
  --glass-border: rgba(0,0,0,.10);
  --glass-highlight: rgba(255,255,255,.9);
  --glass-shadow: 0 10px 30px rgba(0,0,0,.12);
}

* { box-sizing: border-box; }

html, body, .card {
  transition: background-color 400ms ease, color 400ms ease, border-color 400ms ease;
}

html { background: var(--page-bg); }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

.page {
  width: 100%;
  max-width: calc(var(--content) + var(--page-pad) * 2);
  margin: 0 auto;
  padding: 32px var(--page-pad) 24px;
}









.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }




/* Heading */
.intro { text-align: center; margin-bottom: 40px; }
.intro h1 {
  margin: 0;
  font-size: clamp(40px, 4vw, 64px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.intro h1 span { color: var(--accent); }
.intro p {
  max-width: 760px;
  margin: 16px auto 0;
  font-size: clamp(16px, 1.25vw, 20px);
  color: var(--text-soft);
}

/* Main grid */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  align-items: stretch;
}

.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
}

.profile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.profile-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 25%;
}
.profile-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 32px;
}
.profile-body h2 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
}
.profile-body p { margin: 0; color: var(--text-soft); }
.signature {
  align-self: flex-end;
  display: block;
  width: clamp(150px, 40%, 220px);
  height: auto;
  margin-top: 24px;
  color: var(--text);
  overflow: visible;
}
.signature path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 400ms ease;
}

.values {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: var(--gap);
}
.value {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-content: start;
  padding: 32px;
}
.value svg { width: 32px; height: 32px; color: var(--accent); }
.value h3 {
  margin: 2px 0 8px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}
.value p { margin: 0; color: var(--text-soft); }

/* Resume buttons */
.resume {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin: 32px 0;
}
.btn {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 32px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 250ms ease, transform 250ms ease;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; }

/* Closing card */
.cta {
  padding: 40px 32px;
  text-align: center;
}
.cta h2 { margin: 0 0 16px; font-size: 24px; line-height: 1.25; }
.cta p { max-width: 640px; margin: 0 auto; color: var(--text-soft); }

.page-footer {
  padding: 32px 16px 0;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

/* Back to top (glass) */
.back-to-top {
  position: fixed;
  right: clamp(16px, 2vw, 40px);
  bottom: clamp(16px, 2vw, 40px);
  z-index: 20;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 300ms ease, transform 300ms ease, visibility 300ms, color 400ms ease, border-color 400ms ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.back-to-top:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.back-to-top svg { width: 22px; height: 22px; }
@media (min-width: 2560px) {
  .back-to-top { width: 68px; height: 68px; }
  .back-to-top svg { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity 200ms ease, visibility 200ms; transform: none; }
  .back-to-top:hover { transform: none; }
}

/* Entrance animation */
.reveal { animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.reveal-2 { animation-delay: 100ms; }
.reveal-3 { animation-delay: 200ms; }
.reveal-4 { animation-delay: 300ms; }
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Breakpoints */
@media (max-width: 767.98px) {
  .about-grid, .resume { grid-template-columns: minmax(0, 1fr); }
  .values { grid-template-rows: none; }
  .btn { justify-self: stretch; }
}
@media (max-width: 575.98px) {
  :root { --gap: 14px; --radius: 15px; --page-pad: 12px; }
  
  .profile-body, .value { padding: 24px; }
  .intro { margin-bottom: 32px; }
}
@media (min-width: 1920px) {
  :root { --content: 1280px; }
}
@media (min-width: 2560px) {
  :root { --content: 1680px; --gap: 28px; --radius: 24px; }
  body { font-size: 20px; }
  .intro h1 { font-size: 88px; }
  .intro p { font-size: 26px; max-width: 1000px; }
  .profile-body h2 { font-size: 30px; }
  .signature { width: clamp(200px, 35%, 300px); }
  .value { grid-template-columns: 44px 1fr; padding: 40px; }
  .value svg { width: 44px; height: 44px; }
  .value h3 { font-size: 24px; }
  .btn { font-size: 20px; min-height: 56px; }
  .page-footer { font-size: 18px; }
}
@media (min-width: 3840px) {
  :root { --content: 2400px; --gap: 36px; --radius: 30px; }
  body { font-size: 26px; }
  .intro h1 { font-size: 120px; }
  .intro p { font-size: 34px; max-width: 1400px; }
  .profile-body h2 { font-size: 40px; }
  .value h3 { font-size: 32px; }
  .signature { width: clamp(280px, 35%, 420px); }
  .page-footer { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  .btn, .back-to-top { transition: none; }
  .btn:hover { transform: none; }
}




































@media (max-width: 575.98px) {
  
  
  
}
@media (min-width: 2560px) {
  
  
  
  
  
  
  
  
}
@media (min-width: 3840px) {
  
  
  
  
  
  
  
}


/* ===== Featured Work: project cards ===== */
.projects { display: grid; gap: var(--gap); }
.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  min-height: 340px;
}
.project-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 40px;
}
.project-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.project-cat { color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.project-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-muted); }
.project-year { color: var(--text-muted); }
.project-title { margin: 0; font-size: clamp(22px, 1.8vw, 30px); line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; }
.project-desc { margin: 0; color: var(--text-soft); max-width: 48ch; }
.project-media { display: block; position: relative; overflow: hidden; min-height: 260px; }
.project-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.project:hover .project-media img { transform: scale(1.04); }

/* Compact accent button */
.btn-sm {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin-top: 8px;
  padding: 0 16px 0 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(244,90,10,.28), inset 0 1px 0 rgba(255,255,255,.25);
  transition: background-color 250ms ease, transform 250ms ease;
}
.btn-sm svg { width: 16px; height: 16px; transition: transform 250ms ease; }
.btn-sm:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-sm:hover svg { transform: translate(2px, -2px); }
.btn-sm:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.cta { margin-top: var(--gap); }
.cta-btn { align-self: center; margin-top: 24px; }

/* Cards rise in as they scroll into view */
.js .reveal-on-scroll { opacity: 0; transform: translateY(28px); }
.js .reveal-on-scroll.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 767.98px) {
  .project { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .project-media { order: -1; aspect-ratio: 16 / 10; min-height: 0; }
  .project-body { padding: 24px; }
}
@media (min-width: 2560px) {
  .project { min-height: 460px; }
  .project-body { padding: 56px; gap: 16px; }
  .project-meta { font-size: 18px; }
  .btn-sm { min-height: 52px; font-size: 19px; padding: 0 24px 0 24px; }
  .btn-sm svg { width: 20px; height: 20px; }
}
@media (min-width: 3840px) {
  .project { min-height: 640px; }
  .project-meta { font-size: 22px; }
  .btn-sm { min-height: 64px; font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal-on-scroll { opacity: 1; transform: none; }
  .project-media img, .btn-sm, .btn-sm svg { transition: none; }
  .project:hover .project-media img, .btn-sm:hover { transform: none; }
}

/* ===== Case study ===== */
.cs-intro { margin-bottom: 32px; }
.cs-eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.cs-intro h1 { margin: 0; font-size: clamp(36px, 3.6vw, 56px); line-height: 1.1; letter-spacing: -0.03em; }
.cs-sub { margin: 8px 0 0; color: var(--text-soft); font-size: clamp(16px, 1.2vw, 20px); }
.cs-hero { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--surface-border); }
.cs-hero img { display: block; width: 100%; aspect-ratio: 12 / 5; object-fit: cover; }
.cs figure { margin: 0; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--gap); margin-top: var(--gap); }
.stat { padding: 24px; text-align: center; }
.stat-ic, .feat-ic, .li-ic { color: var(--accent); }
.stat-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(244,90,10,.12); }
.stat-ic svg { width: 24px; height: 24px; }
.stat .stat-t { display: block; font-family: var(--font-head); font-weight: 700; color: var(--text); margin: 16px 0 2px; font-size: 18px; }
.stat p { margin: 0; color: var(--text-soft); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.tags li { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--glass-border); background: var(--glass-bg); font-size: 14px; font-weight: 600; }

.cs-section { margin-top: 56px; }
.cs-h2 { margin: 0 0 16px; font-size: clamp(24px, 2vw, 32px); line-height: 1.2; letter-spacing: -0.015em; }
.cs-h3 { margin: 24px 0 16px; font-size: 18px; color: var(--text-soft); }
.cs-h3:first-of-type { margin-top: 0; }
.panel { padding: 32px; }
.panel p { margin: 0; color: var(--text-soft); }
.panel p + p { margin-top: 16px; }
.panel-warm { background: linear-gradient(135deg, rgba(244,90,10,.14), rgba(244,90,10,.04)); border-color: rgba(244,90,10,.25); }
.panel-alert { background: linear-gradient(135deg, rgba(218,30,40,.16), rgba(218,30,40,.04)); border-color: rgba(218,30,40,.4); }
.panel-label { margin-bottom: 16px !important; color: var(--text) !important; font-weight: 700; }

.ic-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.ic-list li { display: grid; grid-template-columns: 24px 1fr; gap: 16px; align-items: start; color: var(--text-soft); }
.li-ic svg { width: 22px; height: 22px; margin-top: 1px; }
.ic-list--alert .li-ic { color: #ff4d55; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--gap); }
.stack { display: grid; gap: 16px; }
.feat { display: grid; grid-template-columns: 28px 1fr; gap: 16px; align-items: start; padding: 24px; }
.feat-ic svg { width: 26px; height: 26px; }
.feat h3 { margin: 0 0 8px; font-size: 17px; }
.feat p { margin: 0; color: var(--text-soft); }

.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; padding: 16px 24px; }
.step-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 18px; box-shadow: 0 6px 16px rgba(244,90,10,.3); }
.step h3 { margin: 0 0 2px; font-size: 17px; }
.step p { margin: 0; color: var(--text-soft); }

.placeholder-media {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  margin-top: var(--gap); min-height: 260px; border-radius: var(--radius);
  border: 2px dashed var(--glass-border); background: var(--glass-bg); color: var(--text-muted);
  font-weight: 600; text-align: center; padding: 24px;
}
.placeholder-media svg { width: 40px; height: 40px; }

.swatches { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.chip { width: 56px; height: 56px; border-radius: 14px; border: 1px solid var(--surface-border); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.sw-name { font-size: 14px; font-weight: 600; }
.sw-hex { font-size: 13px; color: var(--text-muted); font-family: ui-monospace, "SF Mono", Consolas, monospace; }

.type { display: grid; gap: 16px; }
.type h4 { margin: 0 0 4px; font-size: 16px; }
.type-scale { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; padding-top: 16px; border-top: 1px solid var(--surface-border); }
.type-scale > div { display: flex; flex-direction: column; }
.ts-h1 { font-size: 36px; font-weight: 700; line-height: 1.15; }
.ts-h2 { font-size: 28px; font-weight: 600; line-height: 1.2; }
.ts-body { font-size: 16px; font-weight: 400; line-height: 1.6; }
.ts-size { color: var(--text-muted); font-size: 14px; }

.lds { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--gap); margin-top: var(--gap); align-items: start; }

/* Video placeholder */
.video-ph { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--surface-border); aspect-ratio: 16 / 9; background: #000; }
.video-ph img { width: 100%; height: 100%; object-fit: cover; filter: blur(2px) brightness(.45); transform: scale(1.03); }
.video-ph-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: #fff; text-align: center; }
.video-ph-play { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 10px rgba(244,90,10,.25), 0 12px 32px rgba(0,0,0,.4); }
.video-ph-play svg { width: 34px; height: 34px; margin-left: 4px; }
.video-ph-title { font-size: clamp(20px, 2vw, 30px); font-weight: 700; }
.video-ph-badge { padding: 4px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

.cs .cta { margin-top: 56px; }

@media (max-width: 991.98px) {
  .swatches { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 767.98px) {
  .stats, .grid-2, .lds, .type-scale { grid-template-columns: minmax(0,1fr); }
  .cs-hero img { aspect-ratio: 4 / 3; }
  .cs-section { margin-top: 48px; }
}
@media (max-width: 575.98px) {
  .swatches { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .panel, .feat { padding: 24px; }
  .video-ph-play { width: 64px; height: 64px; }
}
@media (min-width: 2560px) {
  .stat .stat-t, .feat h3, .step h3 { font-size: 24px; }
  .cs-h3 { font-size: 24px; }
  .chip { width: 80px; height: 80px; }
  .sw-name, .tags li, .cs-eyebrow { font-size: 18px; }
  .step { grid-template-columns: 60px 1fr; }
  .step-num { width: 56px; height: 56px; font-size: 24px; }
}

.flow { overflow: hidden; margin-top: var(--gap); background: #ffffff; }
.flow img { display: block; width: 100%; height: auto; }
.flow figcaption { padding: 16px 16px; background: var(--surface); color: var(--text-muted); font-size: 14px; border-top: 1px solid var(--surface-border); }

/* ===== Font pairing: Merriweather titles + Nunito body ===== */
h1, h2, h3, h4 { font-family: var(--font-head); }
button, .btn, .btn-sm, .tags li { font-family: var(--font-body); }
.btn, .btn-sm { font-weight: 700; }
.cs-intro h1 { font-weight: 700; letter-spacing: -0.015em; }
.cs-h2, .cta h2 { font-weight: 700; letter-spacing: -0.005em; }
.stat .stat-t, .feat h3, .step h3, .type h4 { font-weight: 700; letter-spacing: 0; }
.cs-h3 { font-weight: 400; }
.cs-eyebrow, .sw-name, .ts-size, .flow figcaption, .video-ph-badge, .step-num { font-family: var(--font-body); }
/* Typography specimen shows Enercare's sans-serif, not the portfolio fonts */
.ts-h1, .ts-h2, .ts-body { font-family: "Helvetica Neue", Arial, sans-serif; }
:root:not([data-theme="light"]) .panel p, :root:not([data-theme="light"]) .feat p { line-height: 1.7; }

.lds .card { overflow: hidden; }
.lds img { display: block; width: 100%; height: auto; }

/* ===== Screen showcase ===== */
.showcase {
  display: grid;
  grid-template-columns: 1.522fr 1.310fr;  /* proportional to image ratios so row 2 shares one height */
  gap: var(--gap);
  margin-top: 32px;
}
.shot { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--surface-border); background: var(--surface); }
.shot-1 { grid-column: 1 / -1; }
.shot-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.shot-btn img { display: block; width: 100%; height: auto; transition: transform 800ms cubic-bezier(0.22,1,0.36,1); }
.shot:hover .shot-btn img { transform: scale(1.03); }
.shot-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.shot-zoom {
  position: absolute; top: 14px; right: 14px; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%; color: #fff;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transform: scale(.9); transition: opacity 250ms ease, transform 250ms ease;
}
.shot-zoom svg { width: 18px; height: 18px; }
.shot:hover .shot-zoom, .shot-btn:focus-visible .shot-zoom { opacity: 1; transform: scale(1); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none;
  display: flex; flex-direction: column; gap: 2px;
  padding: 40px 24px 16px; color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,0) 100%);
}
.shot figcaption strong { font-family: var(--font-head); font-size: clamp(17px, 1.4vw, 22px); }
.shot figcaption span { font-size: 15px; opacity: .9; }

/* ===== Lightbox ===== */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 56px 72px;
  border: 0; background: rgba(8,9,10,.92); color: #fff;
}
.lightbox[open] { display: grid; place-items: center; animation: lb-in 300ms ease both; }
.lightbox::backdrop { background: transparent; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 100%; max-height: 100%; }
.lb-img { display: block; max-width: 100%; max-height: calc(100vh - 160px); width: auto; height: auto; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-cap { text-align: center; font-size: 16px; }
.lb-cap strong { font-family: var(--font-head); margin-right: 8px; }
.lb-btn {
  position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #fff; cursor: pointer;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background-color 200ms ease, border-color 200ms ease;
}
.lb-btn:hover { background: var(--accent); border-color: var(--accent); }
.lb-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.lb-btn svg { width: 22px; height: 22px; }
.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: 767.98px) {
  .showcase { grid-template-columns: minmax(0,1fr); }
  .shot figcaption { position: static; padding: 16px 16px; color: var(--text); background: var(--surface); }
  .shot figcaption span { color: var(--text-soft); opacity: 1; }
  .lightbox { padding: 64px 16px 24px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-img { max-height: calc(100vh - 200px); }
}
@media (prefers-reduced-motion: reduce) {
  .shot-btn img, .shot-zoom { transition: none; }
  .shot:hover .shot-btn img { transform: none; }
  .lightbox[open] { animation: none; }
}
  
