:root {
  --navy: #031329;
  --blue: #0759bd;
  --silver-light: #f8fafc;
  --silver: #c8cdd4;
  --silver-mid: #8d949d;
  --graphite: #363b42;
}

* {
  box-sizing: border-box;
}

html {
  background: #020814;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #eef5ff;
  background:
    radial-gradient(circle at 50% 0, #0a315e 0, transparent 38rem),
    linear-gradient(180deg, #06172e 0, #020814 52rem);
  font-family: Arial, Helvetica, sans-serif;
}

.site-header {
  width: min(100% - 28px, 1500px);
  margin: 10px auto 0;
}

.utility-bar {
  display: flex;
  width: min(100% - 28px, 1500px);
  min-height: 42px;
  margin: 14px auto 0;
  padding: 5px 10px;
  align-items: center;
  justify-content: space-between;
  border: 2px solid #555b63;
  border-radius: 6px;
  background: linear-gradient(180deg, #f8f9fa, #a5abb2 52%, #e4e7ea);
  box-shadow:
    inset 0 0 0 1px #ffffff,
    0 4px 12px rgb(0 0 0 / 30%);
}

.header-frame {
  overflow: hidden;
  padding: 5px;
  border: 3px solid #555b63;
  border-radius: 10px;
  background:
    linear-gradient(135deg,
      #ffffff 0%,
      #d9dde2 18%,
      #f9fafb 38%,
      #aeb4bb 58%,
      #f4f6f8 78%,
      #c6cbd1 100%);
  box-shadow:
    inset 0 0 0 1px #ffffff,
    0 0 0 2px #30353b,
    0 0 0 4px #6d737a,
    0 14px 34px rgb(0 0 0 / 55%),
    0 0 24px rgb(255 255 255 / 14%);
}

.hero-image {
  min-height: clamp(260px, 33.33vw, 500px);
  border: 1px solid #111820;
  border-radius: 5px 5px 0 0;
  background-image:
    linear-gradient(180deg, rgb(2 9 22 / 6%), rgb(2 9 22 / 12%)),
    url("images/header.jpg");
  background-position: center;
  background-size: cover;
}

.portfolio-hero {
  background-image:
    linear-gradient(180deg, rgb(2 9 22 / 6%), rgb(2 9 22 / 12%)),
    url("images/portfolio.png");
}

.free-gallery-hero {
  background-image:
    linear-gradient(180deg, rgb(2 9 22 / 6%), rgb(2 9 22 / 12%)),
    url("images/free_gallery.png");
}

.about-hero {
  background-image:
    linear-gradient(180deg, rgb(2 9 22 / 6%), rgb(2 9 22 / 12%)),
    url("images/about.png");
}

.contact-hero {
  background-image:
    linear-gradient(180deg, rgb(2 9 22 / 6%), rgb(2 9 22 / 12%)),
    url("images/contact.png");
}

.main-nav {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  min-height: 34px;
  padding: 2px;
  border: 1px solid #565c64;
  border-radius: 0 0 5px 5px;
  background:
    linear-gradient(180deg,
      #ffffff 0%,
      #d8dce1 24%,
      #a5abb2 52%,
      #c6cbd0 76%,
      #f5f6f8 100%);
  box-shadow:
    inset 0 0 0 1px #f8fafc,
    inset 0 0 8px 2px #626971;
}

.nav-pin-form {
  display: flex;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  margin-right: 0;
  padding: 0;
}

.nav-pin-form label {
  color: #18202a;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgb(255 255 255 / 75%);
}

.nav-pin-form input {
  width: 76px;
  height: 25px;
  padding: 2px 5px;
  border: 1px solid #565d65;
  border-radius: 2px;
  color: #071d3c;
  background: #ffffff !important;
  box-shadow: inset 0 1px 3px rgb(0 0 0 / 18%);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: center;
}

.nav-pin-form button {
  height: 25px;
  padding: 2px 10px;
  border: 1px solid #064d9d;
  border-radius: 2px;
  color: #ffffff;
  background: linear-gradient(180deg, #1687eb, #0753a6 55%, #043872);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-pin-form button:hover,
.nav-pin-form button:focus-visible {
  outline: 2px solid #1687eb;
  outline-offset: 1px;
  background: linear-gradient(180deg, #2b9aff, #0864c7 55%, #06478e);
}

.pin-error-banner {
  width: min(100% - 28px, 1500px);
  margin: 12px auto 0;
  padding: 9px 14px;
  border: 1px solid #a83535;
  border-radius: 3px;
  color: #7b1010;
  background: #ffe1e1;
  text-align: center;
}

.main-nav a {
  position: relative;
  display: grid;
  min-width: 88px;
  place-items: center;
  padding: 0 16px;
  min-height: 30px;
  color: #111820;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgb(255 255 255 / 80%);
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.main-nav a + a {
  border-left: 1px solid rgb(39 44 50 / 45%);
  box-shadow: inset 1px 0 0 rgb(255 255 255 / 60%);
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
  color: white;
  outline: none;
  background: linear-gradient(180deg, #1b6fd3, #052a5d 54%, #031b3d);
  text-shadow: 0 1px 2px #000;
  box-shadow:
    inset 0 1px 0 #5bb2ff,
    inset 0 -2px 0 #031126,
    0 0 14px rgb(0 100 255 / 30%);
}

.utility-socials {
  display: flex;
  align-items: center;
  gap: 9px;
}

.utility-social {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.utility-social img {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: contain;
}

.utility-social:hover,
.utility-social:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 8px rgb(0 91 255 / 55%);
}

.welcome {
  width: min(100% - 28px, 1500px);
  margin: 38px auto 18px;
  padding: 28px 24px;
  border: 1px solid #1686ed;
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 1px rgb(130 202 255 / 16%),
    0 0 12px rgb(0 106 255 / 12%);
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: #78b9ff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.welcome h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 500;
  white-space: nowrap;
}

.content-section {
  width: min(100% - 28px, 1500px);
  margin: 0 auto 24px;
  padding: 34px;
  border: 1px solid #242a31;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgb(0 0 0 / 28%);
  color: #18202a;
  scroll-margin-top: 18px;
}

.content-section > h2 {
  margin: 0 0 28px;
  color: #071d3c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
  text-align: center;
}

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

.service-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #89919a;
  border-radius: 5px;
  background: #f8f9fa;
  box-shadow:
    0 0 0 2px #e7e9ec,
    0 8px 20px rgb(3 19 41 / 18%);
}

.service-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.service-title {
  padding: 12px 16px;
  border-top: 1px solid #6eb5ff;
  border-bottom: 1px solid #020b18;
  background: linear-gradient(180deg, #0c4b91, #061d3d 58%, #031329);
  text-align: center;
}

.service-title h3 {
  margin: 0;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.035em;
  text-shadow: 0 1px 2px #000;
}

.service-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 20px 22px 22px;
  text-align: center;
}

.service-copy p {
  flex: 1;
  margin: 0 0 20px;
  color: #3b444e;
  line-height: 1.55;
}

.service-copy a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border: 1px solid #064d9d;
  border-radius: 3px;
  color: #ffffff;
  background: linear-gradient(180deg, #1687eb, #0753a6 55%, #043872);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 35%);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.service-copy a:hover,
.service-copy a:focus-visible {
  outline: 2px solid #1687eb;
  outline-offset: 3px;
  background: linear-gradient(180deg, #2b9aff, #0864c7 55%, #06478e);
}

.client-access {
  display: grid;
  width: min(100% - 28px, 1500px);
  margin: 0 auto 18px;
  padding: 26px 30px;
  grid-template-columns: 1fr minmax(320px, 520px);
  align-items: center;
  gap: 34px;
  border: 1px solid #1686ed;
  border-radius: 4px;
  background: linear-gradient(135deg, rgb(5 28 59 / 94%), rgb(3 15 34 / 96%));
  box-shadow: 0 10px 26px rgb(0 0 0 / 28%);
}

.client-access h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 500;
}

.client-access > div > p:last-child {
  margin: 8px 0 0;
  color: #c9d7e8;
}

.client-access form > label {
  display: block;
  margin-bottom: 7px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pin-form-row {
  display: flex;
  gap: 8px;
}

.pin-form-row input {
  width: 155px;
  padding: 10px 14px;
  border: 1px solid #9da6b0;
  border-radius: 3px;
  color: #071d3c;
  background: #ffffff;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-align: center;
}

.pin-form-row button,
.admin-shell button {
  padding: 10px 18px;
  border: 1px solid #064d9d;
  border-radius: 3px;
  color: #ffffff;
  background: linear-gradient(180deg, #1687eb, #0753a6 55%, #043872);
  font-weight: 800;
  cursor: pointer;
}

.form-error,
.form-success,
.pin-result {
  padding: 10px 12px;
  border-radius: 3px;
}

.form-error { color: #7b1010; background: #ffe1e1; }
.form-success { color: #12552a; background: #ddf5e5; }
.pin-result { color: #071d3c; background: #dcecff; font-size: 1.15rem; }
.pin-result strong { font-size: 1.6rem; letter-spacing: 0.16em; }

.admin-body,
.private-gallery-body {
  min-height: 100vh;
  color: #18202a;
  background: #eef1f5;
}

.admin-shell {
  width: min(100% - 32px, 1100px);
  margin: 42px auto;
}

.admin-auth { max-width: 520px; }
.admin-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-panel { margin-top: 24px; padding: 24px; border: 1px solid #9da5ae; border-radius: 5px; background: #ffffff; box-shadow: 0 8px 22px rgb(3 19 41 / 12%); }
.admin-shell form { display: grid; gap: 14px; }
.admin-shell label { display: grid; gap: 6px; font-weight: 700; }
.admin-shell input { width: 100%; padding: 10px 12px; border: 1px solid #89919a; border-radius: 3px; font: inherit; }
.admin-shell small { color: #65707c; font-weight: 400; }
.admin-table-wrap { overflow-x: auto; }
.admin-shell table { width: 100%; border-collapse: collapse; }
.admin-shell th, .admin-shell td { padding: 11px; border-bottom: 1px solid #d8dde2; text-align: left; }
.admin-shell .small-button { padding: 7px 12px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.admin-actions form { display: block; }
.admin-shell .open-gallery-button { border-color: #155d34; background: linear-gradient(180deg, #36a866, #176b3b); }
.admin-shell .reset-pin-button { border-color: #7a5700; background: linear-gradient(180deg, #d9a928, #9a6d08); }
.admin-shell button:disabled { opacity: 0.48; cursor: not-allowed; }
.contact-inquiry-list { display: grid; gap: 14px; }
.contact-inquiry { padding: 16px; border: 1px solid #d0d6dc; border-radius: 4px; background: #f8fafc; }
.contact-inquiry-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.contact-inquiry h3 { margin: 0; color: #071d3c; }
.contact-inquiry time, .contact-inquiry small { color: #66717c; }
.contact-inquiry p { line-height: 1.55; }

.private-gallery-header {
  display: flex;
  padding: 18px max(20px, calc((100% - 1400px) / 2));
  align-items: center;
  justify-content: space-between;
  background: #031329;
}

.private-gallery-header a { color: #ffffff; font-weight: 800; text-decoration: none; }
.private-gallery { width: min(100% - 32px, 1400px); margin: 42px auto; }
.private-gallery h1 { margin: 0 0 28px; color: #071d3c; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 500; }
.client-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.client-photo-grid a { overflow: hidden; display: block; aspect-ratio: 4 / 3; border: 1px solid #929aa3; border-radius: 4px; background: #dfe3e8; box-shadow: 0 5px 14px rgb(3 19 41 / 14%); }
.client-photo-grid img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 180ms ease; }
.client-photo-grid a:hover img { transform: scale(1.025); }
.empty-gallery { padding: 32px; border: 1px solid #aab1b8; background: #ffffff; }

.portfolio-main {
  width: min(100% - 28px, 1500px);
  margin: 38px auto 28px;
}

.portfolio-intro {
  padding: 34px 24px;
  border: 1px solid #1686ed;
  border-radius: 4px;
  background: rgb(3 19 41 / 48%);
  box-shadow:
    inset 0 0 0 1px rgb(130 202 255 / 16%),
    0 0 12px rgb(0 106 255 / 12%);
  text-align: center;
}

.portfolio-intro h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 500;
}

.portfolio-intro > p:last-child {
  margin: 14px 0 0;
  color: #dcecff;
  font-size: 1.05rem;
}

.about-main {
  width: min(100% - 28px, 1500px);
  margin: 38px auto 28px;
}

.about-intro {
  padding: 34px 24px;
  border: 1px solid #1686ed;
  border-radius: 4px;
  background: rgb(3 19 41 / 48%);
  box-shadow:
    inset 0 0 0 1px rgb(130 202 255 / 16%),
    0 0 12px rgb(0 106 255 / 12%);
  text-align: center;
}

.about-intro h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 500;
}

.about-content {
  min-height: 360px;
  margin-top: 18px;
  padding: 30px;
  border: 1px solid #242a31;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgb(0 0 0 / 28%);
  color: #18202a;
}

.about-copy {
  width: min(100%, 1040px);
  margin: 0 auto;
}

.about-copy section + section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid #d4d9df;
}

.about-copy h2 {
  margin: 0 0 14px;
  color: #071d3c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 500;
}

.about-copy p {
  margin: 0;
  color: #3d4854;
  font-size: 1.04rem;
  line-height: 1.75;
}

.about-copy p + p {
  margin-top: 16px;
}

.about-copy .about-closing {
  margin-top: 26px;
  padding: 18px 20px;
  border-left: 4px solid #1686ed;
  color: #071d3c;
  background: #edf6ff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
}

.contact-main {
  width: min(100% - 28px, 1500px);
  margin: 38px auto 28px;
}

.contact-intro {
  padding: 34px 24px;
  border: 1px solid #1686ed;
  border-radius: 4px;
  background: rgb(3 19 41 / 48%);
  box-shadow:
    inset 0 0 0 1px rgb(130 202 255 / 16%),
    0 0 12px rgb(0 106 255 / 12%);
  text-align: center;
}

.contact-intro h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 500;
}

.contact-content {
  min-height: 360px;
  margin-top: 18px;
  padding: 30px;
  border: 1px solid #242a31;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgb(0 0 0 / 28%);
  color: #18202a;
}

.contact-form-intro {
  width: min(100%, 850px);
  margin: 0 auto 24px;
  text-align: center;
}

.contact-form-intro h2 {
  margin: 0;
  color: #071d3c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 500;
}

.contact-form-intro p {
  margin: 9px 0 0;
  color: #58636e;
}

.contact-layout {
  display: grid;
  width: min(100%, 1160px);
  margin: 0 auto;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.85fr);
  align-items: start;
  gap: 34px;
}

.contact-form {
  position: relative;
  display: grid;
  width: 100%;
  margin: 0;
  gap: 24px;
}

.contact-card {
  overflow: hidden;
  position: relative;
  margin-top: 28px;
  padding: 30px 26px;
  border: 1px solid #707983;
  border-radius: 4px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 12%), transparent 42%),
    linear-gradient(180deg, #123b70, #071d3c 58%, #031126);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 13%),
    0 10px 24px rgb(3 19 41 / 24%);
}

.contact-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #d8dde2, #ffffff, #1687eb, #ffffff, #8e979f);
  content: "";
}

.contact-card-kicker {
  margin: 0 0 13px;
  color: #9dd3ff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 500;
}

.contact-card-role {
  margin: 5px 0 24px;
  color: #d8dde2;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-card-details {
  display: grid;
  gap: 13px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 24%);
}

.contact-card-details a {
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration-color: #67b5ff;
  text-underline-offset: 4px;
}

.contact-card-details a:hover,
.contact-card-details a:focus-visible {
  color: #9dd3ff;
}

.contact-person-secondary {
  margin-top: 27px;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 24%);
}

.contact-person-secondary .contact-card-role {
  margin-bottom: 12px;
}

.contact-card-details-compact {
  padding-top: 0;
  border-top: 0;
}

.contact-form label {
  display: grid;
  gap: 9px;
  color: #26323e;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.contact-form label span {
  color: #68737e;
  font-weight: 400;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #8e979f;
  border-radius: 3px;
  color: #172330;
  background: #ffffff;
  font: inherit;
  font-weight: 400;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid #1686ed;
  outline-offset: 1px;
  border-color: #075ab2;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.contact-form button {
  justify-self: center;
  min-width: 190px;
  padding: 11px 22px;
  border: 1px solid #064d9d;
  border-radius: 3px;
  color: #ffffff;
  background: linear-gradient(180deg, #1687eb, #0753a6 55%, #043872);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 35%);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  outline: 2px solid #1687eb;
  outline-offset: 3px;
  background: linear-gradient(180deg, #2b9aff, #0864c7 55%, #06478e);
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.portfolio-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 18px;
  padding: 30px;
  border: 1px solid #242a31;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgb(0 0 0 / 28%);
}

.free-gallery-main {
  width: min(100% - 28px, 1500px);
  margin: 18px auto 0;
}

.free-gallery-content {
  display: grid;
  gap: 28px;
  margin-top: 18px;
  padding: 30px;
  border: 1px solid #242a31;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgb(0 0 0 / 28%);
}

.free-gallery-section {
  padding: 24px;
  border: 1px solid #a7adb4;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffffff, #f4f6f8);
  box-shadow: 0 5px 16px rgb(3 19 41 / 12%);
  scroll-margin-top: 18px;
}

.free-gallery-grid {
  display: grid;
  margin-top: 20px;
  grid-auto-rows: 190px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.free-gallery-grid a {
  overflow: hidden;
  display: block;
  border: 1px solid #8f979f;
  border-radius: 4px;
  background: #e7e9ec;
  box-shadow: 0 5px 14px rgb(3 19 41 / 16%);
}

.free-gallery-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.free-gallery-grid a:hover img,
.free-gallery-grid a:focus-visible img {
  filter: brightness(1.05);
  transform: scale(1.025);
}

.free-gallery-grid a:focus-visible {
  outline: 3px solid #1686ed;
  outline-offset: 3px;
}

.portfolio-row {
  width: 100%;
  min-width: 0;
  min-height: 260px;
  padding: 24px;
  border: 1px solid #a7adb4;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffffff, #f4f6f8);
  box-shadow: 0 5px 16px rgb(3 19 41 / 12%);
  scroll-margin-top: 18px;
}

.portfolio-heading {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 13px;
  border-bottom: 1px solid #1686ed;
}

.portfolio-heading h2 {
  margin: 0;
  color: #071d3c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 500;
}

.portfolio-heading p {
  margin: 0;
  color: #46515d;
  font-size: 1.08rem;
  line-height: 1.45;
  text-align: left;
}

.property-video {
  overflow: hidden;
  display: block;
  width: min(100%, 1100px);
  max-width: 1100px;
  margin: 24px auto;
  border: 1px solid #707983;
  border-radius: 4px;
  background: #020814;
  box-shadow: 0 10px 24px rgb(3 19 41 / 22%);
}

.property-video video {
  display: block;
  width: 100%;
  min-height: 260px;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #020814;
}

.property-gallery {
  overflow-x: auto;
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 4px 2px 11px;
  justify-content: flex-start;
  gap: 12px;
  overscroll-behavior-inline: contain;
  scrollbar-color: #47729e #dce2e8;
  scrollbar-width: thin;
}

.property-gallery a {
  overflow: hidden;
  display: block;
  height: 150px;
  flex: 0 0 190px;
  border: 1px solid #9ba2aa;
  border-radius: 3px;
  background: #e7e9ec;
  box-shadow: 0 4px 12px rgb(3 19 41 / 14%);
}

.property-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.property-gallery a:hover img,
.property-gallery a:focus-visible img {
  filter: brightness(1.05);
  transform: scale(1.025);
}

.property-gallery a:focus-visible {
  outline: 3px solid #1686ed;
  outline-offset: 3px;
}

.property-entry-secondary {
  width: 100%;
  min-width: 0;
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid #a7adb4;
}

.property-entry h3 {
  margin: 0;
  color: #071d3c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 600;
  text-align: center;
}

.site-footer {
  margin-top: 28px;
  padding: 44px 28px;
  background:
    radial-gradient(circle at 50% 0, rgb(22 104 194 / 24%), transparent 34rem),
    linear-gradient(180deg, #071a35, #020a17 72%);
  box-shadow: inset 0 10px 30px rgb(0 0 0 / 24%);
}

.footer-inner {
  display: grid;
  width: min(100%, 1300px);
  margin: 0 auto;
  grid-template-columns: minmax(240px, 1fr) auto minmax(240px, 1fr);
  align-items: center;
  gap: 64px;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-brand-left {
  justify-content: flex-start;
}

.footer-brand-right {
  justify-content: flex-end;
}

.footer-brand-left img {
  width: min(100%, 310px);
  height: auto;
}

.footer-brand-right img {
  width: min(100%, 165px);
  height: auto;
  filter:
    drop-shadow(1px 0 0 #ffffff)
    drop-shadow(-1px 0 0 #ffffff)
    drop-shadow(0 1px 0 #ffffff)
    drop-shadow(0 -1px 0 #ffffff);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-nav a {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 1px 2px #000;
  transition: color 160ms ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #67b5ff;
  outline: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-card {
    width: min(100%, 520px);
    margin: 0 auto;
  }
}

@media (max-width: 700px) {
  .site-header {
    width: min(100% - 16px, 1500px);
    margin-top: 10px;
  }

  .utility-bar {
    width: min(100% - 16px, 1500px);
    margin-top: 8px;
  }

  .hero-image {
    min-height: 240px;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .main-nav a {
    min-width: 0;
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .main-nav a + a {
    border-left: 0;
    box-shadow: none;
  }

  .main-nav a:nth-of-type(even) {
    border-left: 1px solid rgb(39 44 50 / 45%);
  }

  .main-nav a:nth-of-type(n + 3) {
    border-top: 1px solid rgb(39 44 50 / 45%);
  }

  .nav-pin-form {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .nav-pin-form input {
    width: 100%;
  }

  .pin-error-banner {
    width: min(100% - 16px, 1500px);
  }

  .welcome {
    width: min(100% - 16px, 1500px);
    padding: 22px 14px;
  }

  .welcome h1 {
    font-size: clamp(1.75rem, 9vw, 2.7rem);
    white-space: normal;
  }

  .content-section {
    width: min(100% - 16px, 1500px);
    padding: 24px 16px;
  }

  .portfolio-main {
    width: min(100% - 16px, 1500px);
  }

  .about-main {
    width: min(100% - 16px, 1500px);
  }

  .contact-main {
    width: min(100% - 16px, 1500px);
  }

  .contact-content {
    padding: 24px 16px;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
  }

  .portfolio-content {
    padding: 18px;
  }

  .portfolio-row {
    min-height: 220px;
  }

  .portfolio-heading {
    gap: 6px;
  }

  .property-gallery {
    grid-auto-rows: 120px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .client-access {
    width: min(100% - 16px, 1500px);
    grid-template-columns: 1fr;
    padding: 22px 16px;
  }

  .pin-form-row {
    align-items: stretch;
    flex-direction: column;
  }

  .pin-form-row input {
    width: 100%;
  }

  .site-footer {
    padding: 38px 18px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand-left,
  .footer-brand-right {
    justify-content: center;
  }

  .footer-brand-left img {
    width: min(100%, 280px);
  }

  .footer-brand-right img {
    width: min(100%, 145px);
  }
}
