:root {
  --ink: #06090e;
  --panel: #0a1724;
  --paper: #f1f4f7;
  --muted: #9daab7;
  --blue: #075ca8;
  --cyan: #49b9e8;
  --gold: #e3a32c;
  --line: rgba(73, 185, 232, .22);
  --max: 1260px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: Manrope, Arial, sans-serif; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.shell { width: min(var(--max), calc(100% - 42px)); margin: auto; }
.top { padding: 8px 18px; border-bottom: 1px solid var(--line); text-align: center; color: var(--gold); font: 500 10px "DM Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.nav { min-height: 136px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand-logo { display: block; width: 190px; height: 122px; background: url('/assets/tampa-bay-quartz-logo.webp') center / contain no-repeat; }
.navlinks { display: flex; gap: 26px; align-items: center; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.navlinks a:hover { color: var(--cyan); }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 14px 19px; border: 0; background: linear-gradient(135deg, #075ca8, #0b74c8); color: white; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.button:hover { background: linear-gradient(135deg, #e3a32c, #f4c45a); color: #09111a; }
.crumbs { padding-top: 18px; color: var(--muted); font-size: 12px; }
.crumbs a { color: var(--cyan); }
.hero { position: relative; min-height: 580px; display: grid; align-items: end; isolation: isolate; overflow: hidden; border-top: 1px solid var(--line); }
.hero > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,9,14,.96), rgba(6,9,14,.66) 54%, rgba(6,9,14,.16)), linear-gradient(0deg, rgba(6,9,14,.9), transparent 62%); }
.hero-copy { padding: 72px 0; max-width: 820px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--gold); font: 500 11px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .13em; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
h1 { max-width: 900px; margin: 20px 0 22px; font-size: clamp(3.4rem, 7vw, 7.2rem); line-height: .92; letter-spacing: -.07em; }
.lead { max-width: 690px; margin: 0; color: #d6dde4; font-size: 18px; line-height: 1.7; }
.portfolio { padding: 84px 0 110px; }
.portfolio-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 30px; margin-bottom: 34px; }
h2 { margin: 14px 0 0; font-size: clamp(2.3rem, 4vw, 4.4rem); line-height: 1; letter-spacing: -.055em; }
.filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.filter { padding: 10px 15px; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: var(--muted); font: 500 10px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.filter:hover, .filter.active { border-color: var(--gold); background: var(--gold); color: #09111a; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-flow: dense; gap: 12px; }
.project { position: relative; grid-column: span 4; min-height: 360px; margin: 0; overflow: hidden; background: var(--panel); }
.project.wide { grid-column: span 8; }
.project.tall { grid-row: span 2; min-height: 732px; }
.project[hidden] { display: none; }
.project button { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: white; cursor: zoom-in; text-align: left; }
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.project button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3,6,10,.9), transparent 62%); }
.project button:hover img, .project button:focus-visible img { transform: scale(1.025); filter: brightness(.84); }
.project button:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.caption { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 20px; }
.caption span { display: block; color: var(--gold); font: 500 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .13em; }
.caption strong { display: block; margin-top: 7px; font-size: 20px; letter-spacing: -.035em; }
.note { margin: 30px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.cta { padding: 78px 0; background: linear-gradient(120deg, #063f74, #075ca8 58%, #0a1724); }
.cta-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; }
.cta h2 { margin: 0 0 15px; max-width: 760px; }
.cta p { margin: 0; color: #d6e5ef; line-height: 1.7; }
footer { padding: 42px 0; color: var(--muted); font-size: 13px; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; }
.footer-grid a { color: var(--cyan); }
.lightbox { position: fixed; z-index: 50; inset: 0; display: none; place-items: center; padding: 32px; background: rgba(2,4,7,.96); }
.lightbox.open { display: grid; }
.lightbox figure { width: min(1120px, 100%); margin: 0; }
.lightbox img { display: block; width: 100%; max-height: 80vh; object-fit: contain; }
.lightbox figcaption { padding-top: 13px; color: white; font-size: 14px; }
.close { position: fixed; top: 20px; right: 24px; border: 0; background: transparent; color: white; font-size: 36px; cursor: pointer; }

@media (max-width: 820px) {
  .navlinks a:not(.button) { display: none; }
  .nav { min-height: 108px; }
  .brand-logo { width: 150px; height: 96px; background-size: contain; background-position: center; }
  .hero { min-height: 520px; }
  .hero-copy { padding: 58px 0; }
  .portfolio-head { grid-template-columns: 1fr; }
  .filters { justify-content: flex-start; }
  .project, .project.wide { grid-column: span 6; min-height: 300px; }
  .project.tall { grid-row: auto; min-height: 300px; }
  .cta-inner { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .shell { width: calc(100% - 30px); }
  h1 { font-size: 3.4rem; }
  .lead { font-size: 16px; }
  .project, .project.wide { grid-column: span 12; min-height: 310px; }
  .lightbox { padding: 16px; }
}
