/* ---------------------------------------------------------
   KeliAnn Engineering, LLC — site styles
--------------------------------------------------------- */

:root{
  --ink: #0A1730;
  --ink-soft: #12244A;
  --paper: #EEF3FB;
  --paper-high: #F8FBFF;
  --steel: #4C607F;
  --oxide: #1B4FD6;
  --oxide-dark: #123B9E;
  --oxide-bright: #5B9DFF;
  --white: #F4F7FC;
  --line-on-paper: rgba(10,23,48,0.14);
  --line-on-ink: rgba(244,247,252,0.18);
  --max: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(255,255,255,0.95), rgba(255,255,255,0) 58%),
    radial-gradient(900px 520px at 108% 6%, rgba(133,175,255,0.4), rgba(133,175,255,0) 55%),
    radial-gradient(1000px 700px at 50% 115%, rgba(91,157,255,0.16), rgba(91,157,255,0) 60%),
    linear-gradient(180deg, #F2F6FC 0%, #E7EEFA 55%, #E1EAF9 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display{
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.03em;
  color: var(--oxide-dark);
}

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

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

a:focus-visible, button:focus-visible, .btn:focus-visible{
  outline: 2px solid var(--oxide);
  outline-offset: 3px;
}

/* ---------------- Nav ---------------- */

.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(238,244,253,0.9) 100%);
  backdrop-filter: blur(10px) saturate(1.15);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.6), 0 1px 0 var(--line-on-paper), 0 12px 30px rgba(10,23,48,0.06);
  border-bottom: none;
}
.nav .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.nav-mark{
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--oxide-dark);
}
.nav-mark span{ color: var(--oxide); }
.nav-logo{
  height: 38px;
  width: auto;
  mix-blend-mode: multiply;
}
.nav-menu{
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links{
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a, .nav-contact-toggle{
  text-decoration: none;
  font-size: 0.98rem;
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: border-color 0.15s ease;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  padding-left: 0;
  padding-right: 0;
  cursor: pointer;
}
.nav-links a:hover{ border-color: var(--oxide); }
.nav-links a[aria-current="page"]{ border-color: var(--oxide); }
.nav-contact{ position: relative; }
.nav-contact-toggle[aria-expanded="true"]{ border-color: var(--oxide); }
.nav-contact-panel{
  position: absolute;
  top: calc(100% + 22px);
  right: 0;
  width: 400px;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--ink);
  border: 1px solid var(--line-on-ink);
  padding: 28px;
  box-shadow: 0 20px 44px rgba(10,23,48,0.28);
  z-index: 60;
}
.nav-contact-panel .contact-form{ gap: 20px; }
.nav-contact-panel .btn{ width: 100%; justify-content: center; }
.nav-contact-panel .field label,
.nav-contact-panel .field legend{ margin-bottom: 8px; }
.nav-phone{
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--ink);
  padding: 9px 16px;
  white-space: nowrap;
}
.nav-phone:hover{ background: var(--ink); color: var(--paper); }
.nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--ink);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before{ position: absolute; top: -6px; }
.nav-toggle span::after{ position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span{ background: transparent; }
.nav-toggle[aria-expanded="true"] span::before{ top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after{ top: 0; transform: rotate(-45deg); }

/* ---------------- Buttons ---------------- */

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  padding: 14px 26px;
  border: 1px solid currentColor;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease, background 0.2s ease, color 0.2s ease;
}
.btn:active{ transform: translateY(1px) scale(0.98); }
.btn-primary{
  background: linear-gradient(160deg, var(--oxide-bright) 0%, var(--oxide) 45%, var(--oxide-dark) 100%);
  border-color: var(--oxide-dark);
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 10px 24px rgba(18,59,158,0.35), 0 2px 6px rgba(18,59,158,0.25);
}
.btn-primary:hover{ box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 14px 30px rgba(18,59,158,0.42), 0 2px 8px rgba(18,59,158,0.3); transform: translateY(-1px); }
.btn-primary:focus-visible{ outline-color: var(--oxide-bright); }
.btn-ghost-light{
  color: var(--white);
  border-color: rgba(244,247,252,0.55);
}
.btn-ghost-light:hover{ background: rgba(244,247,252,0.12); }
.btn-ghost-dark{
  color: var(--oxide-dark);
  border-color: var(--oxide-dark);
}
.btn-ghost-dark:hover{ background: var(--oxide-dark); color: var(--paper); }

/* ---------------- Hero ---------------- */

.hero{
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(115deg, rgba(91,157,255,0.16) 0%, rgba(91,157,255,0) 30%),
    linear-gradient(180deg, rgba(10,23,48,0.55) 0%, rgba(10,23,48,0.8) 55%, rgba(10,23,48,0.95) 100%),
    url('images/hero-commercial.jpg') center 30% / cover no-repeat;
  color: var(--white);
}
.hero::after{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 22%);
  pointer-events: none;
}
.hero-inner{
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px 72px;
  width: 100%;
}
.credential-tag{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  border-left: 2px solid var(--oxide);
  padding: 4px 0 4px 14px;
  margin-bottom: 26px;
  color: var(--paper-high);
  opacity: 0.92;
}
.hero h1{
  font-size: clamp(2.4rem, 5vw, 3.85rem);
  max-width: 15ch;
  color: var(--white);
}
.hero p.lede{
  font-family: 'Source Serif 4', serif;
  font-size: 1.18rem;
  max-width: 54ch;
  margin-top: 22px;
  color: var(--paper-high);
}
.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

/* ---------------- Brand banner (blueprint background) ---------------- */

.brand-banner{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 165px;
  padding: 24px 20px;
  background: url('images/banner-blueprint.jpg') center 50% / cover no-repeat;
  overflow: hidden;
}
.brand-banner::before{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(10,23,48,0.25) 0%, rgba(10,23,48,0.05) 35%, rgba(255,255,255,0.18) 50%, rgba(10,23,48,0.05) 65%, rgba(10,23,48,0.25) 100%);
  pointer-events: none;
}
.brand-banner p{
  position: relative;
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 4vw, 2.5rem);
  color: #bcd6ff;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5), 2px 3px 3px rgba(10,23,48,0.75), 0 0 26px rgba(91,157,255,0.55);
  text-align: center;
}

/* ---------------- Page header (interior pages) ---------------- */

.page-header{
  padding: 72px 0 64px;
  background: var(--paper-high);
  border-bottom: 1px solid var(--line-on-paper);
}
.page-header h1{
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  max-width: 20ch;
}
.page-header .lede{
  font-family: 'Source Serif 4', serif;
  font-size: 1.12rem;
  color: var(--steel);
  max-width: 60ch;
  margin-top: 20px;
}
.page-header .btn{ margin-top: 30px; }

/* ---------------- Section scaffolding ---------------- */

.section{ padding: 108px 0; }
.section-tight{ padding: 88px 0; }
.on-ink{
  position: relative;
  background:
    radial-gradient(900px 500px at 12% 0%, rgba(91,157,255,0.14), rgba(91,157,255,0) 55%),
    radial-gradient(700px 500px at 100% 100%, rgba(91,157,255,0.1), rgba(91,157,255,0) 55%),
    var(--ink);
  color: var(--paper-high);
}
.on-ink h2{ color: var(--white); }
.on-ink .rule{ border-color: var(--line-on-ink); }

.section-head{
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line-on-paper);
  padding-bottom: 28px;
}
.on-ink .section-head{ border-color: var(--line-on-ink); }
.section-head h2{ font-size: clamp(1.8rem, 3vw, 2.5rem); }
.section-head .intro{
  color: var(--steel);
  font-size: 1.05rem;
  max-width: 46ch;
}
.on-ink .section-head .intro{ color: rgba(244,247,252,0.72); }

/* ---------------- Services ---------------- */

.services-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-on-paper);
}
.service{
  border-right: 1px solid var(--line-on-paper);
  padding: 0 28px 0 0;
}
.service:last-child{ border-right: none; }
.service:not(:first-child){ padding-left: 28px; }
.service-photo{
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin-top: 28px;
  filter: saturate(0.94);
}
.service h3{
  font-size: 1.28rem;
  margin-top: 22px;
}
.service p{
  color: var(--steel);
  margin-top: 12px;
  font-size: 0.99rem;
}
.service .see-more{
  display: inline-block;
  margin-top: 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-on-paper);
  text-underline-offset: 4px;
}
.service .see-more:hover{ text-decoration-color: var(--oxide); }

/* ---------------- Quote band ---------------- */

.band{
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(100deg, rgba(10,23,48,0.88) 0%, rgba(10,23,48,0.62) 62%, rgba(10,23,48,0.4) 100%),
    linear-gradient(200deg, rgba(91,157,255,0.22) 0%, rgba(91,157,255,0) 40%),
    url('images/civil-bridge.jpg') center / cover no-repeat;
  color: var(--white);
}
.band::after{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 20%);
  pointer-events: none;
}
.band .wrap{ position: relative; z-index: 1; }
.band blockquote{
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  max-width: 20ch;
  line-height: 1.25;
}
.band cite{
  display: block;
  font-style: normal;
  font-family: 'Source Serif 4', serif;
  font-size: 0.95rem;
  color: var(--paper-high);
  opacity: 0.75;
  margin-top: 22px;
}

/* ---------------- About ---------------- */

.about-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-copy p{ color: var(--steel); font-size: 1.03rem; margin-top: 16px; }
.about-copy p:first-of-type{ margin-top: 0; }
.value-list{
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-on-paper);
}
.value-list li{
  padding: 16px 0;
  border-bottom: 1px solid var(--line-on-paper);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
}
.about-photos{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
}
.about-photos img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--line-on-paper);
}
.about-photos .tall{ aspect-ratio: 3/4; }
.about-photos .short{ aspect-ratio: 3/4; margin-top: 46px; }

.service-detail{
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line-on-paper);
  max-width: 70ch;
}
.service-detail h3{
  font-size: 1.5rem;
}
.service-detail > p{
  color: var(--steel);
  font-size: 1.03rem;
  margin-top: 16px;
}
.service-detail-list{
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}
.service-detail-list li{
  padding: 16px 0;
  border-bottom: 1px solid var(--line-on-paper);
  color: var(--steel);
  font-size: 1.03rem;
  line-height: 1.6;
}
.service-detail-list li:first-child{ border-top: 1px solid var(--line-on-paper); }
.service-detail-list strong{
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}
.service-detail-list a{
  color: var(--oxide);
  text-decoration: underline;
  text-decoration-color: rgba(27,79,214,0.35);
  text-underline-offset: 3px;
}
.service-detail-list a:hover{ text-decoration-color: var(--oxide); }
.service-detail h4{
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  margin: 40px 0 16px;
}
.compact-list{
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}
.compact-list li{
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.03rem;
  color: var(--ink);
  padding: 6px 0;
}
.case-study{ margin-top: 24px; }
.case-study + .case-study{ margin-top: 32px; }
.case-study h5{
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0;
}
.case-study p{
  color: var(--steel);
  font-size: 1.03rem;
  margin-top: 10px;
}

/* ---------------- Projects ---------------- */

.project-grid{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 130px;
  gap: 14px;
}
.project-tile{
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-on-paper);
  cursor: zoom-in;
}
.project-tile:focus-visible{ outline: 2px solid var(--oxide); outline-offset: 2px; }
.project-tile img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-tile figcaption{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(10,23,48,0.86), rgba(10,23,48,0));
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
}
.p1{ grid-column: span 3; grid-row: span 3; }
.p2{ grid-column: span 3; grid-row: span 2; }
.p3{ grid-column: span 2; grid-row: span 2; }
.p4{ grid-column: span 2; grid-row: span 2; }
.p5{ grid-column: span 2; grid-row: span 2; }
.p6{ grid-column: span 3; grid-row: span 2; }

.view-all-link{
  display: inline-block;
  margin-top: 36px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(244,247,252,0.4);
  text-underline-offset: 4px;
}
.view-all-link:hover{ text-decoration-color: var(--oxide); }

/* ---------------- Project tabs / gallery (projects.html) ---------------- */

.project-tabs{
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--line-on-ink);
  margin-bottom: 44px;
}
.project-tab{
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 14px 22px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: rgba(244,247,252,0.55);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.project-tab:hover{ color: var(--white); }
.project-tab[aria-selected="true"]{
  color: var(--white);
  border-bottom-color: var(--oxide);
}
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.gallery-grid[hidden]{ display: none; }
.gallery-grid .project-tile{
  aspect-ratio: 4/3;
  border-color: var(--line-on-ink);
}
.gallery-grid .project-tile img{
  transition: transform 0.3s ease;
}
.gallery-grid .project-tile:hover img{
  transform: scale(1.04);
}

.project-card{
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 1px solid var(--line-on-ink);
  text-decoration: none;
}
.project-card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.project-card:hover img{ transform: scale(1.04); }
.project-card-caption{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(10,23,48,0.9), rgba(10,23,48,0));
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ---------------- Project detail pages ---------------- */

.back-link{
  display: inline-block;
  margin-bottom: 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--steel);
  text-decoration: underline;
  text-decoration-color: var(--line-on-paper);
  text-underline-offset: 4px;
}
.back-link:hover{ text-decoration-color: var(--oxide); }
.project-detail-photo{
  margin-top: 36px;
  max-width: 520px;
}
.project-detail-photo img{
  width: 100%;
  border: 1px solid var(--line-on-paper);
}
.gallery-heading{
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--white);
  margin: 0 0 24px;
}
.gallery-block + .gallery-block{ margin-top: 56px; }
.project-detail-nav{
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line-on-paper);
  padding-top: 28px;
  margin-top: 56px;
}
.project-detail-nav a{
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: underline;
  text-decoration-color: var(--line-on-paper);
  text-underline-offset: 4px;
}
.project-detail-nav a:hover{ text-decoration-color: var(--oxide); }
.project-detail-nav .next{ margin-left: auto; text-align: right; }

/* ---------------- Testimonials (scrolling marquee) ---------------- */

.testimonial-marquee{
  overflow: hidden;
  margin-top: 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.testimonial-track{
  display: flex;
  align-items: stretch;
  gap: 56px;
  width: max-content;
  padding: 0 28px;
  animation: testimonial-scroll 32s linear infinite;
}
.testimonial-marquee:hover .testimonial-track,
.testimonial-marquee:focus-within .testimonial-track{
  animation-play-state: paused;
}
.testimonial-card{
  flex: 0 0 auto;
  width: min(78vw, 440px);
  border-left: 2px solid var(--oxide);
  padding: 4px 0 4px 24px;
}
.testimonial-card q{
  display: block;
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.55;
  quotes: none;
  color: var(--ink);
}
.testimonial-card cite{
  display: block;
  font-style: normal;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--oxide);
  margin-top: 18px;
}
@keyframes testimonial-scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .testimonial-track{ animation: none !important; transform: none !important; }
  .testimonial-marquee{ overflow-x: auto; }
}

/* ---------------- Blog ---------------- */

.blog-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.blog-card{
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--paper-high);
  border: 1px solid var(--line-on-paper);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease, border-color 0.2s ease;
}
.blog-card:hover{
  transform: translateY(-3px);
  border-color: var(--oxide);
  box-shadow: 0 20px 40px rgba(10,23,48,0.12);
}
.blog-card-photo{ margin: 0; aspect-ratio: 16/9; overflow: hidden; background: var(--ink); }
.blog-card-photo img{ width: 100%; height: 100%; object-fit: cover; filter: saturate(0.94); }
.blog-card-body{ padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-card-date{
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 10px;
}
.blog-card-title{ font-size: 1.2rem; margin: 0 0 10px; }
.blog-card-excerpt{ color: var(--steel); font-size: 0.98rem; flex-grow: 1; margin: 0; }
.blog-card-link{
  display: inline-block;
  margin-top: 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--oxide);
  text-decoration: underline;
  text-decoration-color: rgba(27,79,214,0.35);
  text-underline-offset: 4px;
  width: fit-content;
}
.blog-card:hover .blog-card-link{ text-decoration-color: var(--oxide); }
.blog-more-note{ margin-top: 36px; color: var(--steel); font-size: 0.95rem; }

.blog-back-link{
  display: inline-block;
  margin-bottom: 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--oxide);
  text-decoration: none;
}
.blog-back-link:hover{ text-decoration: underline; }

.blog-post{ max-width: 74ch; }
.blog-post h1{ max-width: 20ch; margin-top: 6px; }
.blog-post h3{ margin-top: 40px; }
.blog-post-photo{ margin: 24px 0 32px; border: 1px solid var(--line-on-paper); }
.blog-post-photo img{ width: 100%; display: block; filter: saturate(0.94); }
.blog-post p{ color: var(--steel); font-size: 1.03rem; margin: 0 0 20px; }
.blog-post p a{ color: var(--oxide); }
.blog-post .service-detail-list{ margin: 20px 0; }
.blog-post-nav{ margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-on-paper); }

/* ---------------- FAQ ---------------- */

.faq-list{
  max-width: 78ch;
  border-top: 1px solid var(--line-on-ink);
}
.faq-item{
  border-bottom: 1px solid var(--line-on-ink);
}
.faq-question{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  background: none;
  border: none;
  padding: 22px 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--white);
  text-align: left;
  cursor: pointer;
}
.faq-icon{
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.faq-icon::before, .faq-icon::after{
  content: '';
  position: absolute;
  background: var(--oxide);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-icon::before{ width: 14px; height: 2px; }
.faq-icon::after{ width: 2px; height: 14px; transition: transform 0.2s ease; }
.faq-question[aria-expanded="true"] .faq-icon::after{ transform: translate(-50%, -50%) rotate(90deg) scaleY(0); }
.faq-answer{ padding: 0 0 24px; }
.faq-answer[hidden]{ display: none; }
.faq-answer p{
  font-size: 1.02rem;
  color: rgba(244,247,252,0.75);
  max-width: 68ch;
}

/* ---------------- Contact ---------------- */

.required-note{
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(244,247,252,0.55);
  margin: 0 0 28px;
}
.contact-form{
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.contact-form .field-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form label, .contact-form legend{
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 10px;
  padding: 0;
}
.contact-form .req{ color: var(--oxide); }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea{
  width: 100%;
  background: rgba(244,247,252,0.04);
  border: 1px solid var(--line-on-ink);
  color: var(--white);
  font-family: 'Source Serif 4', serif;
  font-size: 1rem;
  padding: 12px 14px;
}
.contact-form input::placeholder{ color: rgba(244,247,252,0.4); }
.contact-form input:focus, .contact-form textarea:focus{
  outline: none;
  border-color: var(--oxide);
}
.contact-form textarea{ resize: vertical; }
.contact-form fieldset{
  border: none;
  margin: 0;
  padding: 0;
}
.contact-form .checkbox{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Source Serif 4', serif;
  font-weight: 400;
  font-size: 1rem;
  color: rgba(244,247,252,0.85);
  margin-bottom: 12px;
  cursor: pointer;
}
.contact-form .checkbox input{
  width: 16px;
  height: 16px;
  accent-color: var(--oxide);
}
.contact-form .field-hint{
  font-family: 'Source Serif 4', serif;
  font-size: 0.85rem;
  color: rgba(244,247,252,0.5);
  margin: 10px 0 0;
}
.contact-form input[type="file"]{
  color: rgba(244,247,252,0.75);
  font-family: 'Source Serif 4', serif;
  font-size: 0.92rem;
}
.contact-form button[type="submit"]{
  align-self: flex-start;
}
/* ---------------- Footer ---------------- */

.footer{
  background:
    radial-gradient(800px 460px at 85% 0%, rgba(91,157,255,0.16), rgba(91,157,255,0) 55%),
    var(--ink);
  color: rgba(244,247,252,0.6);
  padding: 56px 0 32px;
  border-top: 1px solid var(--line-on-ink);
}
.footer-top{
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-on-ink);
}
.footer-mark{
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}
.footer-mark span{ color: var(--oxide); }
.footer-nav{
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
  flex-wrap: wrap;
}
.footer-nav a, .footer-nav-btn{ text-decoration: none; font-family: 'Space Grotesk', sans-serif; font-size: 0.92rem; }
.footer-nav a:hover, .footer-nav-btn:hover{ color: var(--white); }
.footer-nav-btn{
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  cursor: pointer;
}
.footer-details{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line-on-ink);
}
.footer-details h3{
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  margin: 0 0 6px;
}
.footer-info-list, .hours-list{
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-info-list li, .hours-list li{
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-on-ink);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
}
.footer-info-list .label, .hours-list li span:first-child{
  color: rgba(244,247,252,0.55);
}
.footer-info-list a{
  text-decoration: underline;
  text-decoration-color: rgba(244,247,252,0.35);
}
.footer-info-list a:hover{ text-decoration-color: var(--oxide); }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 0.85rem;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 940px){
  .section{ padding: 76px 0; }
  .services-grid{ grid-template-columns: 1fr; }
  .service{ border-right: none; border-bottom: 1px solid var(--line-on-paper); padding: 0 0 40px !important; margin-bottom: 40px; }
  .service:last-child{ border-bottom: none; margin-bottom: 0; padding-bottom: 0 !important; }
  .about-grid{ grid-template-columns: 1fr; gap: 40px; }
  .about-photos .short{ margin-top: 0; }
  .contact-form .field-row{ grid-template-columns: 1fr; }
  .project-grid{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 10px; }
  .p1,.p2,.p3,.p4,.p5,.p6{ grid-column: span 1; grid-row: span 2; }
  .project-tile figcaption{ padding: 10px 12px; font-size: 0.76rem; line-height: 1.3; }
  .footer-details{ grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px){
  .nav-mark{ font-size: 0.98rem; gap: 8px; }
  .nav-logo{ height: 28px; }
  .nav-menu{ display: none; }
  .nav-toggle{ display: flex; }
  .nav.open .nav-menu{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 78px; left: 0; right: 0;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--paper-high);
    border-bottom: 1px solid var(--line-on-paper);
    padding: 8px 32px 24px;
  }
  .nav.open .nav-links{ display: flex; flex-direction: column; width: 100%; }
  .nav.open .nav-links li{ width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line-on-paper); }
  .nav.open .nav-phone{ display: inline-flex; margin-top: 20px; }
  .nav-contact-toggle{ width: 100%; text-align: left; }
  .nav-contact-panel{
    position: static;
    width: 100%;
    max-height: none;
    box-shadow: none;
    margin-top: 16px;
    padding: 22px;
  }
  .wrap{ padding: 0 22px; }
  .hero-inner{ padding: 0 22px 56px; }
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .band blockquote{ max-width: none; }
}

/* ---------------- Lightbox ---------------- */

.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(10,23,48,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 60px;
}
.lightbox[hidden]{ display: none; }
.lightbox-figure{
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  max-height: 100%;
}
.lightbox-img{
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border: 1px solid var(--line-on-ink);
}
.lightbox-caption{
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  color: rgba(244,247,252,0.75);
  text-align: center;
}
.lightbox-caption:empty{ display: none; }
.lightbox-close, .lightbox-nav{
  position: absolute;
  background: rgba(10,23,48,0.6);
  border: 1px solid rgba(244,247,252,0.4);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease;
}
.lightbox-close:hover, .lightbox-nav:hover{ border-color: var(--oxide); }
.lightbox-close{
  top: 24px; right: 28px;
  width: 44px; height: 44px;
  font-size: 1.6rem;
  line-height: 1;
}
.lightbox-nav{
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  font-size: 2rem;
  line-height: 1;
}
.lightbox-prev{ left: 24px; }
.lightbox-next{ right: 24px; }
.lightbox-nav[hidden]{ display: none; }

@media (max-width: 760px){
  .lightbox{ padding: 20px; }
  .lightbox-close{ top: 14px; right: 14px; width: 40px; height: 40px; }
  .lightbox-nav{ width: 40px; height: 40px; font-size: 1.5rem; }
  .lightbox-prev{ left: 8px; }
  .lightbox-next{ right: 8px; }
}

/* ---------------- Form submission popup ---------------- */

.form-popup{
  position: fixed;
  inset: 0;
  background: rgba(10,23,48,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 20px;
}
.form-popup[hidden]{ display: none; }
.form-popup-box{
  position: relative;
  background: var(--ink);
  border: 1px solid var(--line-on-ink);
  max-width: 440px;
  width: 100%;
  padding: 44px 32px;
  text-align: center;
}
.form-popup-close{
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: none;
  border: 1px solid rgba(244,247,252,0.4);
  color: var(--white);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-popup-close:hover{ border-color: var(--oxide); }
.form-popup-box h3{
  font-size: 1.4rem;
  color: var(--white);
  margin: 0 0 14px;
}
.form-popup-box p{
  font-family: 'Source Serif 4', serif;
  font-size: 1rem;
  color: rgba(244,247,252,0.8);
  line-height: 1.6;
  margin: 0;
}
.form-popup-box.is-error h3{ color: #e4a27a; }
