:root {
  --ink: #101113;
  --paper: #f4f0e8;
  --paper-2: #ebe5da;
  --blue: #0a66ff;
  --blue-dark: #0047bd;
  --white: #fff;
  --line: rgba(16,17,19,.16);
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(16,17,19,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,17,19,.025) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(100% - 32px, var(--max));
  margin: 16px auto 0;
  padding: 12px 14px 12px 18px;
  background: rgba(244,240,232,.94);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  backdrop-filter: blur(8px);
}

.brand img { width: 156px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: .91rem;
  font-weight: 800;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover { color: var(--blue); }

.nav-cta {
  padding: 10px 15px;
  background: var(--ink);
  color: var(--white);
}

.site-nav .nav-cta:hover {
  background: var(--blue);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 40px;
  padding: 9px;
  background: transparent;
  border: 0;
}

.menu-toggle span {
  display: block;
  height: 3px;
  margin: 4px 0;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 55px;
  align-items: center;
  min-height: 700px;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 95px 0 80px;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--blue);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.hero h1,
.section h2,
.quote-section h2 {
  margin: 0;
  font-family: Impact, "Arial Narrow Bold", sans-serif;
  font-weight: 400;
  line-height: .96;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 800px;
  font-size: clamp(4.3rem, 9vw, 8.7rem);
}

.hero h1 span {
  color: var(--blue);
  position: relative;
}

.hero h1 span::after {
  content: "";
  position: absolute;
  left: 1%;
  right: 0;
  bottom: -4px;
  height: 8px;
  background: var(--blue);
  transform: rotate(-1.2deg);
}

.hero-text {
  max-width: 700px;
  margin: 35px 0 0;
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: 2px solid var(--ink);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.button-primary {
  background: var(--blue);
  color: var(--white);
}

.button-ghost {
  background: transparent;
  color: var(--ink);
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 30px;
  font-size: .85rem;
  font-weight: 800;
}

.hero-notes span::before {
  content: "✓";
  margin-right: 7px;
  color: var(--blue);
}

.hero-panel {
  position: relative;
  min-height: 460px;
  border: 3px solid var(--ink);
  background: var(--blue);
  box-shadow: 12px 12px 0 var(--ink);
  transform: rotate(1deg);
  overflow: hidden;
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  border: 2px solid rgba(255,255,255,.38);
  border-radius: 50%;
}

.hero-panel::before { right: -70px; top: -70px; }
.hero-panel::after { left: -100px; bottom: -100px; }

.camera-card {
  position: absolute;
  inset: 50px 30px auto;
  min-height: 270px;
  padding: 25px;
  background: var(--paper);
  border: 3px solid var(--ink);
  transform: rotate(-3deg);
}

.camera-card p {
  position: absolute;
  left: 24px;
  bottom: 20px;
  margin: 0;
  font-family: Impact, "Arial Narrow Bold", sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
}

.camera-doodle {
  position: relative;
  width: 220px;
  height: 120px;
  margin: 10px auto 0;
}

.camera-body {
  position: absolute;
  right: 0;
  top: 5px;
  width: 180px;
  height: 82px;
  background: var(--ink);
  border: 4px solid var(--ink);
  transform: skewX(-8deg) rotate(4deg);
}

.camera-body::before {
  content: "";
  position: absolute;
  right: -10px;
  top: 12px;
  width: 58px;
  height: 58px;
  border: 6px solid var(--paper);
  border-radius: 50%;
}

.camera-body span {
  position: absolute;
  left: 24px;
  top: 20px;
  width: 70px;
  height: 8px;
  background: var(--blue);
  transform: rotate(-2deg);
}

.camera-arm {
  position: absolute;
  left: 50px;
  top: 83px;
  width: 90px;
  height: 18px;
  background: var(--ink);
  transform: rotate(-10deg);
}

.camera-arm::before {
  content: "";
  position: absolute;
  left: -26px;
  top: -18px;
  width: 28px;
  height: 55px;
  background: var(--ink);
}

.panel-stamp {
  position: absolute;
  right: 18px;
  bottom: 12px;
  color: var(--paper);
  font-family: Impact, "Arial Narrow Bold", sans-serif;
  font-size: 2.7rem;
  line-height: .8;
  text-align: right;
  transform: rotate(-4deg);
}

.trust-strip {
  padding: 18px 20px;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.trust-strip p {
  width: min(100%, var(--max));
  margin: 0 auto;
  font-family: Impact, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1.2rem, 3vw, 2rem);
  letter-spacing: .03em;
  text-transform: uppercase;
}

.section {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 100px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 50px;
  align-items: end;
  margin-bottom: 50px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -30px;
}

.section-heading h2,
.quote-section h2 {
  font-size: clamp(3rem, 6vw, 5.9rem);
}

.section-heading > p:last-child {
  margin: 0;
  font-size: 1.05rem;
}

.section-heading.compact {
  display: block;
}

.section-heading.compact .eyebrow { margin-bottom: 12px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 285px;
  padding: 25px;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.service-card.featured {
  background: var(--blue);
  color: var(--white);
}

.service-card h3 {
  margin: 42px 0 12px;
  font-family: Impact, "Arial Narrow Bold", sans-serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.service-number {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 3px solid currentColor;
  font-weight: 900;
}

.service-card ul {
  margin: 20px 0 0;
  padding-left: 18px;
}

.process {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 2px solid var(--ink);
}

.process-step {
  padding: 28px 24px 35px;
  border-right: 2px solid var(--ink);
}

.process-step:last-child { border-right: 0; }

.process-step strong {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--blue);
  color: var(--white);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.process-step h3 {
  margin: 35px 0 10px;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.work-heading > p:last-child {
  align-self: end;
  padding: 20px;
  background: var(--paper-2);
  border-left: 5px solid var(--blue);
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-auto-rows: 220px;
  gap: 14px;
}

.work-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.work-photo.tall { grid-row: span 2; }
.work-photo.wide { grid-column: span 2; }

.work-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.work-photo:hover img {
  transform: scale(1.025);
}

.work-photo figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 9px;
  background: var(--paper);
  border: 1px solid var(--ink);
  font-size: .8rem;
  font-weight: 800;
}

.about {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 70px;
  align-items: center;
}

.about-mark {
  padding: 45px;
  background: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--blue);
  transform: rotate(-2deg);
}

.about-copy h2 {
  font-size: clamp(3rem, 6vw, 5.5rem);
}

.about-copy > p:not(.eyebrow) {
  max-width: 760px;
  font-size: 1.1rem;
}

.about-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 35px;
}

.about-points p {
  margin: 0;
  padding-top: 15px;
  border-top: 3px solid var(--ink);
}

.faq-list {
  border-top: 2px solid var(--ink);
}

.faq details {
  border-bottom: 2px solid var(--ink);
}

.faq summary {
  padding: 22px 10px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--blue);
  font-size: 1.5rem;
  line-height: 1;
}

.faq details[open] summary::after { content: "−"; }

.faq details p {
  max-width: 800px;
  margin: 0;
  padding: 0 10px 24px;
}

.quote-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  width: min(100% - 40px, var(--max));
  margin: 20px auto 100px;
  padding: 55px;
  background: var(--ink);
  color: var(--white);
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--blue);
}

.light { color: #77a9ff; }

.quote-section > div > p:last-child {
  max-width: 550px;
  font-size: 1.05rem;
}

.quote-form {
  display: grid;
  gap: 16px;
}

.quote-form label {
  display: grid;
  gap: 6px;
  font-size: .84rem;
  font-weight: 900;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 13px 12px;
  border: 2px solid var(--white);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
}

.quote-form select option { color: var(--ink); }

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.quote-form .button {
  width: fit-content;
  margin-top: 5px;
  border-color: var(--white);
  box-shadow: 4px 4px 0 var(--white);
}

.form-note {
  margin: 2px 0 0;
  color: #bfc3ca;
  font-size: .76rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 40px 0 55px;
  border-top: 2px solid var(--ink);
}

.footer-brand img { width: 170px; }
.footer-brand p { margin: 8px 0 0; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: start;
  font-size: .9rem;
  font-weight: 800;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 20px;
  color: #5d5f62;
  font-size: .8rem;
}

@media (max-width: 900px) {
  .site-header {
    width: min(100% - 20px, var(--max));
    margin-top: 10px;
  }

  .menu-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: var(--paper);
    border: 2px solid var(--ink);
    box-shadow: 5px 5px 0 var(--ink);
  }

  .site-nav.open { display: flex; }

  .site-nav a { padding: 10px; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 75px;
  }

  .hero-panel { min-height: 390px; }

  .section-heading,
  .quote-section,
  .about {
    grid-template-columns: 1fr;
  }

  .section-heading .eyebrow { margin-bottom: 0; }

  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2) { border-right: 0; }
  .process-step:nth-child(-n+2) { border-bottom: 2px solid var(--ink); }

  .photo-grid { grid-template-columns: 1fr 1fr; }
  .work-photo.wide { grid-column: span 1; }

  .about { gap: 45px; }
}

@media (max-width: 620px) {
  .hero,
  .section,
  .quote-section,
  .site-footer {
    width: min(100% - 26px, var(--max));
  }

  .hero { gap: 35px; padding: 60px 0; }
  .hero h1 { font-size: clamp(3.6rem, 18vw, 5.3rem); }

  .hero-actions .button { width: 100%; }

  .hero-panel { min-height: 330px; }
  .camera-card { inset: 35px 18px auto; min-height: 220px; }
  .camera-doodle { transform: scale(.8); transform-origin: top center; }
  .camera-card p { font-size: 1.6rem; }

  .section { padding: 75px 0; }
  .section-heading h2,
  .about-copy h2,
  .quote-section h2 { font-size: clamp(2.7rem, 14vw, 4.2rem); }

  .service-grid,
  .process-grid,
  .about-points,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .process-step {
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .process-step:last-child { border-bottom: 0; }
  .work-photo,
  .work-photo.tall,
  .work-photo.wide {
    grid-row: auto;
    grid-column: auto;
    min-height: 230px;
  }

  .quote-section {
    gap: 40px;
    padding: 32px 24px;
  }

  .site-footer { grid-template-columns: 1fr; }
  .copyright { grid-column: auto; }
}


/* Contact and mobile polish */
html {
  scroll-padding-top: 110px;
}

body {
  overflow-x: hidden;
}

#services,
#work,
#about,
#faq,
#quote {
  scroll-margin-top: 110px;
}

.quote-copy p {
  max-width: 560px;
}

.quote-number {
  display: inline-block;
  margin-top: 18px;
  color: var(--white);
  font-family: Impact, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  letter-spacing: .03em;
  text-decoration: none;
  border-bottom: 4px solid var(--blue);
}

.quote-number:hover {
  color: #9bc0ff;
}

.quote-actions {
  display: grid;
  align-content: center;
  gap: 14px;
}

.quote-actions .button {
  width: 100%;
  min-height: 58px;
  border-color: var(--white);
  box-shadow: 4px 4px 0 var(--white);
  text-align: center;
}

.quote-actions .button:hover {
  box-shadow: 2px 2px 0 var(--white);
}

.button-light {
  background: var(--white);
  color: var(--ink);
}

.mobile-contact-bar {
  display: none;
}

@media (max-width: 900px) {
  .site-header {
    top: 8px;
    padding: 9px 10px 9px 14px;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .brand img {
    width: 136px;
  }

  .menu-toggle {
    display: block;
    flex: 0 0 auto;
    border: 2px solid var(--ink);
    cursor: pointer;
  }

  .site-nav {
    top: calc(100% + 7px);
    padding: 10px;
    gap: 2px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 12px;
  }

  .site-nav .nav-cta {
    justify-content: center;
    margin-top: 5px;
  }

  .hero {
    padding-top: 58px;
    padding-bottom: 64px;
    gap: 38px;
  }

  .hero-copy {
    min-width: 0;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 12vw, 6.5rem);
  }

  .hero-text {
    margin-top: 26px;
  }

  .section {
    padding: 82px 0;
  }

  .quote-section {
    gap: 34px;
    padding: 40px 36px;
  }
}

@media (max-width: 720px) {
  .service-grid,
  .process-grid,
  .about-points {
    grid-template-columns: 1fr;
  }

  .process-step,
  .process-step:nth-child(2),
  .process-step:nth-child(-n+2) {
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .process-step:last-child {
    border-bottom: 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section-heading .eyebrow {
    margin-bottom: -4px;
  }
}

@media (max-width: 620px) {
  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }

  .site-header {
    width: calc(100% - 16px);
    margin-top: 8px;
    padding: 8px 9px 8px 12px;
    border-width: 2px;
    box-shadow: 3px 3px 0 var(--ink);
  }

  .brand img {
    width: 118px;
  }

  .menu-toggle {
    width: 42px;
    height: 40px;
  }

  .hero,
  .section,
  .site-footer {
    width: calc(100% - 24px);
  }

  .hero {
    padding: 48px 0 58px;
    gap: 30px;
  }

  .eyebrow {
    font-size: .72rem;
    letter-spacing: .11em;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 4.4rem);
    line-height: .93;
  }

  .hero h1 span::after {
    height: 5px;
    bottom: -2px;
  }

  .hero-text {
    margin-top: 24px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 26px;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 54px;
  }

  .hero-notes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 22px;
  }

  .hero-panel {
    min-height: 285px;
    box-shadow: 7px 7px 0 var(--ink);
  }

  .camera-card {
    inset: 27px 15px auto;
    min-height: 192px;
    padding: 16px;
  }

  .camera-doodle {
    width: 190px;
    height: 105px;
    margin-top: 0;
    transform: scale(.78);
    transform-origin: top center;
  }

  .camera-card p {
    left: 16px;
    bottom: 14px;
    font-size: 1.35rem;
  }

  .panel-stamp {
    right: 12px;
    bottom: 9px;
    font-size: 2rem;
  }

  .trust-strip {
    padding: 14px 12px;
  }

  .trust-strip p {
    font-size: 1.18rem;
  }

  .section {
    padding: 58px 0;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading h2,
  .about-copy h2,
  .quote-section h2 {
    font-size: clamp(2.55rem, 13vw, 3.75rem);
  }

  .service-card {
    min-height: 0;
    padding: 22px 20px;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .service-card h3 {
    margin: 28px 0 10px;
    font-size: 1.75rem;
  }

  .process-step {
    padding: 22px 19px 26px;
  }

  .process-step h3 {
    margin-top: 22px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 160px;
    gap: 8px;
  }

  .work-photo,
  .work-photo.tall,
  .work-photo.wide {
    min-height: 0;
  }

  .work-photo.tall {
    grid-row: span 2;
  }

  .work-photo.wide {
    grid-column: span 2;
  }

  .work-photo {
    box-shadow: 2px 2px 0 var(--ink);
  }

  .work-photo figcaption {
    left: 7px;
    right: 7px;
    bottom: 7px;
    width: fit-content;
    max-width: calc(100% - 14px);
    padding: 5px 6px;
    font-size: .68rem;
    line-height: 1.2;
  }

  .about {
    gap: 32px;
  }

  .about-mark {
    width: min(72vw, 250px);
    margin: 0 auto;
    padding: 30px;
    box-shadow: 7px 7px 0 var(--blue);
  }

  .about-copy > p:not(.eyebrow) {
    font-size: 1rem;
  }

  .faq summary {
    padding: 19px 4px;
    padding-right: 28px;
    position: relative;
  }

  .faq summary::after {
    position: absolute;
    right: 4px;
    top: 18px;
  }

  .faq details p {
    padding: 0 4px 20px;
  }

  .quote-section {
    width: calc(100% - 20px);
    margin: 8px auto 90px;
    padding: 28px 20px;
    gap: 26px;
    box-shadow: 6px 6px 0 var(--blue);
  }

  .quote-copy p {
    font-size: .98rem;
  }

  .quote-number {
    margin-top: 14px;
    font-size: 2rem;
  }

  .quote-actions {
    gap: 11px;
  }

  .quote-actions .button {
    width: 100%;
    min-height: 56px;
    padding: 10px 14px;
  }

  .form-note {
    font-size: .72rem;
    line-height: 1.45;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 32px 0 28px;
  }

  .footer-brand img {
    width: 145px;
  }

  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
  }

  .footer-links a {
    min-height: 38px;
    display: flex;
    align-items: center;
  }

  .copyright {
    grid-column: auto;
    padding-top: 8px;
  }

  .mobile-contact-bar {
    position: fixed;
    z-index: 100;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
    background: rgba(16,17,19,.97);
    border-top: 2px solid var(--blue);
    box-shadow: 0 -4px 18px rgba(0,0,0,.2);
  }

  .mobile-contact-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 16px;
    font-weight: 900;
    text-decoration: none;
    border: 2px solid var(--white);
  }

  .mobile-message {
    background: var(--blue);
    color: var(--white);
  }

  .mobile-call {
    background: var(--white);
    color: var(--ink);
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 2.85rem;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }

  .work-photo.tall,
  .work-photo.wide {
    grid-row: auto;
    grid-column: auto;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}


/* Photo gallery sizing fix — keeps real job photos sharp and in their proper shape */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 14px;
  align-items: start;
}

.work-photo,
.work-photo.tall,
.work-photo.wide,
.work-photo.portrait,
.work-photo.landscape {
  width: 100%;
  min-height: 0;
  grid-row: auto;
  grid-column: auto;
  margin: 0;
  background: #17191d;
}

.work-photo.portrait {
  aspect-ratio: 3 / 4;
}

.work-photo.landscape {
  aspect-ratio: 4 / 3;
}

.work-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
  transform: none;
  transition: none;
}

.work-photo:hover img {
  transform: none;
}

@media (max-width: 980px) {
  .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .work-photo figcaption {
    left: 7px;
    right: 7px;
    bottom: 7px;
    width: fit-content;
    max-width: calc(100% - 14px);
    padding: 6px 7px;
    font-size: .7rem;
    line-height: 1.2;
  }
}

@media (max-width: 420px) {
  .photo-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
  }

  .work-photo,
  .work-photo.tall,
  .work-photo.wide,
  .work-photo.portrait,
  .work-photo.landscape {
    width: min(100%, 300px);
  }
}


/* Final gallery sharpness pass: do not blow small real-world photos up past their useful size */
.photo-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 270px));
  justify-content: center;
  gap: 16px;
}

.work-photo,
.work-photo.tall,
.work-photo.wide,
.work-photo.portrait,
.work-photo.landscape {
  width: 100%;
  max-width: 270px;
  justify-self: center;
}

@media (max-width: 520px) {
  .photo-grid {
    grid-template-columns: minmax(0, 270px);
    justify-content: center;
  }

  .work-photo,
  .work-photo.tall,
  .work-photo.wide,
  .work-photo.portrait,
  .work-photo.landscape {
    width: 100%;
    max-width: 270px;
  }
}


/* Prevent the two smallest source photos being enlarged and looking blurry */
.work-photo.small-source {
  max-width: 210px;
}

.work-photo.landscape {
  max-width: 280px;
}

.work-photo img {
  filter: contrast(1.025) saturate(1.02);
}

@media (max-width: 520px) {
  .work-photo.small-source {
    max-width: 210px;
  }

  .work-photo.landscape {
    max-width: 280px;
  }
}


/* Keep the gallery cards even while protecting the two smallest originals from blur */
.work-photo.small-source {
  max-width: 270px;
  display: grid;
  place-items: center;
}

.work-photo.small-source img {
  width: 210px;
  height: 280px;
  max-width: 210px;
  max-height: 280px;
  object-fit: cover;
}

@media (max-width: 520px) {
  .work-photo.small-source {
    max-width: 270px;
  }

  .work-photo.small-source img {
    width: 210px;
    height: 280px;
  }
}
