/* =========================================================
   JC Building Concepts — site styles
   Palette: brand navy #1E2B59, blueprint blue #2D5BD3,
            sky #EEF3FC, white
   Theme:   light — white surfaces, navy logo, type and rules
   Type:    Archivo (variable width) — expanded for headlines,
            normal width for reading text
   ========================================================= */

:root {
  --navy: #1E2B59;
  --navy-deep: #141D42;
  --blue: #2D5BD3;
  --blue-dark: #2349AE;
  --blue-soft: #A9C0F5;
  --sky: #EEF3FC;
  --line: #D5DDEE;
  --field: #B7C3DD;
  --ink: #1E2B59;
  --muted: #4A5573;
  --white: #FFFFFF;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav-h: 76px;
  --radius: 3px;

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

h1, h2, h3 {
  margin: 0;
  color: var(--navy);
  font-weight: 750;
  font-stretch: 118%;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 6.4vw, 76px); }
h2 { font-size: clamp(30px, 4.2vw, 48px); }
h3 { font-size: 22px; font-stretch: 110%; line-height: 1.2; }

p { margin: 0 0 1em; }

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

.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 58ch;
}
.prose > * + * { margin-top: 0; }
.prose h2 + .lede, .prose h2 + p { margin-top: 20px; }
.prose p { max-width: 62ch; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--white); color: var(--navy); padding: 10px 16px; font-weight: 600;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  border: 2px solid transparent; border-radius: var(--radius);
  font: 600 16px/1.1 var(--font);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-light { background: var(--navy); color: var(--white); }
.btn-light:hover { background: var(--blue-dark); color: var(--white); }
.btn-outline-light { border-color: var(--navy); color: var(--navy); background: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Navigation ---------- */
.site-nav { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-nav .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--nav-h);
}
.brand { display: block; flex-shrink: 0; }
.brand img { height: 32px; width: auto; }

.nav-menu { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  display: block; padding: 6px 0;
  color: var(--muted); text-decoration: none;
  font-size: 15px; font-weight: 500;
  border-bottom: 2px solid transparent;
}
.nav-menu a:hover { color: var(--navy); }
.nav-menu a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--blue); }
.nav-menu .nav-cta {
  padding: 11px 18px; border: 0; border-radius: var(--radius);
  background: var(--navy); color: var(--white); font-weight: 650;
}
.nav-menu .nav-cta:hover { background: var(--blue-dark); color: var(--white); }

.nav-toggle {
  display: none; align-items: center; gap: 10px;
  background: none; border: 1px solid var(--field); border-radius: var(--radius);
  color: var(--navy); font: 600 15px/1 var(--font); padding: 10px 14px; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative;
  transition: transform .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .hero::after { background: linear-gradient(180deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,.88) 45%, rgba(255,255,255,.96) 100%); }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 4px var(--gutter) 24px;
    border-top: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(20,29,66,.12);
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { padding: 15px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-menu a[aria-current="page"] { border-bottom-color: var(--line); box-shadow: inset 3px 0 0 var(--blue); padding-left: 14px; }
  .nav-menu .nav-cta { margin-top: 18px; text-align: center; padding: 15px; }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 860px);
  min-height: min(88svh, 860px);
  display: flex; align-items: flex-end;
  background: var(--sky);
  color: var(--navy);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(255,255,255,.92) 0%,
      rgba(255,255,255,.78) 45%,
      rgba(255,255,255,0) 80%),
    linear-gradient(180deg,
      rgba(255,255,255,0) 30%,
      rgba(255,255,255,.85) 100%);
}
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-block: 140px clamp(56px, 8vw, 96px); }
.hero h1 {
  color: var(--navy);
  font-size: clamp(46px, 10.5vw, 132px);
  font-stretch: 125%;
  font-weight: 800;
  line-height: .9;
  letter-spacing: -0.025em;
}
.hero h1 span { display: block; animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 span + span { animation-delay: .12s; }
.hero-sub {
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.55;
  max-width: 40ch;
  color: var(--navy);
  margin: 28px 0 32px;
}
.hero-call { margin: 18px 0 0; font-size: 16px; color: var(--navy); }
.hero-call a { color: var(--navy); font-weight: 650; }
.video-toggle {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 24px;
  background: rgba(255,255,255,.8); color: var(--navy);
  border: 1px solid var(--field); border-radius: var(--radius);
  font: 500 14px/1 var(--font); padding: 10px 14px; cursor: pointer;
}
.video-toggle:hover { background: var(--white); }

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-sky { background: var(--sky); }
.section-navy {
  background: var(--white); color: var(--navy);
  border-block: 6px double var(--navy);
}
.section-navy h2, .section-navy h3 { color: var(--navy); }
.section-navy a { color: var(--blue); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
  gap: 20px 40px; margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head p { margin: 14px 0 0; color: var(--muted); max-width: 56ch; }

.split {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 88px); align-items: center;
}
.split-reverse > :first-child { order: 2; }

.photo { margin: 0; }
a.photo { display: block; }
.photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sky); }

/* Key facts under the home intro */
.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 36px 0 28px; border-top: 2px solid var(--navy);
}
.facts div { padding: 16px 18px 0 0; }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 650; color: var(--navy); line-height: 1.35; }

/* ---------- Video embeds ---------- */
.embed { position: relative; aspect-ratio: 16 / 9; background: var(--sky); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.video-pair figure { margin: 0; }
.video-pair figcaption { margin-top: 12px; font-weight: 600; color: var(--navy); }

/* ---------- Home photo mosaic ---------- */
.mosaic {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 19vw, 250px); gap: 10px;
}
.mosaic a { display: block; overflow: hidden; background: var(--sky); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mosaic a:hover img { transform: scale(1.03); }
.mosaic a:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.mosaic a:nth-child(2), .mosaic a:nth-child(3) { grid-column: span 2; }
.mosaic a:nth-child(4), .mosaic a:nth-child(5) { grid-column: span 3; }

/* ---------- Quote ---------- */
.pullquote { margin: 0; }
.pullquote p {
  max-width: 21em;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.22;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.quote-cite { margin-top: 28px; font-weight: 600; color: var(--blue); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px); align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--line); }
.contact-list li {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.contact-list .label { color: var(--muted); font-size: 15px; padding-top: 1px; }
.contact-list a { color: var(--navy); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--blue); text-decoration: underline; }

.form-panel { background: var(--white); border: 1px solid var(--line); padding: clamp(24px, 4vw, 40px); }
.form-panel h3 { margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.field { display: grid; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 600; color: var(--navy); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 17px/1.4 var(--font); color: var(--ink);
  background: var(--white); border: 1px solid var(--field); border-radius: var(--radius);
  padding: 12px 14px;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231E2B59' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 2px solid var(--blue); outline-offset: 0; }
.form-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.form-status { margin: 14px 0 0; font-size: 15px; font-weight: 600; color: var(--navy); }
.form-status:empty { display: none; }
.form-status.is-error { color: #B3261E; }
.btn:disabled { opacity: .65; cursor: progress; }
/* Spam trap: hidden from people, often filled in by bots */
.hp { display: none; }

/* ---------- Inner page header ---------- */
.page-head { padding-block: clamp(56px, 8vw, 104px) clamp(32px, 5vw, 56px); }
.page-head h1 {
  font-size: clamp(44px, 8vw, 104px);
  font-stretch: 125%;
  font-weight: 800;
  line-height: .95;
  letter-spacing: -0.02em;
}
.page-head .lede { margin-top: 22px; }
.page-head .btn-row { margin-top: 28px; }
.page-head-photo img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; background: var(--sky); }

.breadcrumbs { margin-bottom: 22px; font-size: 14px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumbs li { color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin: 0 10px; color: var(--field); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--navy); font-weight: 600; }

/* "On this page" chips under a page header */
.jump-nav { margin-top: 32px; }
.jump-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.jump-nav a {
  display: inline-block; padding: 9px 16px; border: 1.5px solid var(--navy); border-radius: 999px;
  color: var(--navy); font-weight: 600; font-size: 15px; text-decoration: none;
}
.jump-nav a:hover { background: var(--navy); color: var(--white); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense; gap: 10px;
}
.gallery a { display: block; overflow: hidden; background: var(--sky); aspect-ratio: 4 / 3; }
.gallery a.is-feature { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery a.is-wide { grid-column: span 2; aspect-ratio: auto; position: relative; }
.gallery a.is-wide img { position: absolute; inset: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery a:hover img { transform: scale(1.03); }

.gallery-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* One project inside a gallery group: name, a line of facts, then photos */
.project { padding-top: 28px; border-top: 2px solid var(--navy); }
.project + .project { margin-top: clamp(48px, 6vw, 72px); }
.project-head {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap;
  gap: 8px 32px; margin-bottom: 20px;
}
.project-head h3 { font-size: clamp(24px, 2.6vw, 30px); }
.project-meta { margin: 0; color: var(--muted); font-size: 15px; }
.project-summary { max-width: 62ch; margin: -6px 0 20px; }
.project .video-pair { margin-top: 10px; }

/* Vertical (phone-shaped) drone reel beside text */
.reel-split {
  display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px); align-items: start;
}
.reel { margin: 0; }
.reel video {
  display: block; width: 100%; height: auto; aspect-ratio: 9 / 16;
  background: var(--navy-deep); border-radius: var(--radius); object-fit: cover;
}
.reel figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); }
.reel-split .project + .project { margin-top: 40px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; border-top: 2px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-weight: 650; font-size: clamp(18px, 1.7vw, 20px); color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex-shrink: 0; font-size: 26px; line-height: 1; font-weight: 400; color: var(--blue);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 22px; max-width: 64ch; }
.faq details > div p { margin: 0; }

/* ---------- Map ---------- */
.map { margin: 28px 0 0; }
.map .embed { aspect-ratio: 4 / 3; background: var(--sky); border: 1px solid var(--line); }
.map figcaption { margin-top: 10px; font-size: 15px; }

/* ---------- Long-form text (privacy policy) ---------- */
.legal { max-width: 72ch; }
.legal h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 44px 0 14px; }
.legal ul { padding-left: 22px; margin: 0 0 1em; }
.legal li + li { margin-top: 6px; }

/* ---------- Sticky call bar on phones ---------- */
.mobile-cta { display: none; }
@media (max-width: 700px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(20,29,66,.10);
  }
  .mobile-cta .btn { min-height: 48px; padding: 0 12px; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(255,255,255,.98); color: var(--navy);
}
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox::backdrop { background: rgba(255,255,255,.7); }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); }
.lightbox-count { margin: 0; font-size: 15px; color: var(--muted); }
.lightbox-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 0 72px; min-height: 0; }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-caption { margin: 0; padding: 14px var(--gutter) 20px; text-align: center; color: var(--muted); min-height: 1em; }
.lightbox button {
  background: var(--white); color: var(--navy);
  border: 1px solid var(--field); border-radius: var(--radius);
  font: 500 15px/1 var(--font); padding: 10px 14px; cursor: pointer;
}
.lightbox button:hover { background: var(--sky); }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 64px; font-size: 28px !important; padding: 0 !important;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

/* ---------- Testimonials ---------- */
.letter {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px); align-items: start;
}
.letter blockquote { margin: 24px 0 0; }
.letter blockquote p { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.65; max-width: 60ch; }
.letter-cite { font-weight: 700; color: var(--navy); margin-top: 8px; }

.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.review { margin: 0; border-top: 3px solid var(--navy); padding-top: 22px; }
.review h3 { font-size: 20px; margin-bottom: 12px; }
.review blockquote { margin: 0 0 18px; color: var(--muted); }
.review blockquote p { margin: 0; }
.review-who { font-weight: 650; color: var(--navy); margin: 0; }
.review-src { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- About ---------- */
.about-block + .about-block { margin-top: clamp(64px, 9vw, 112px); }
.license-list { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 24px 0 0; padding-top: 16px; border-top: 2px solid var(--navy); }
.license-list dt { font-size: 14px; color: var(--muted); }
.license-list dd { margin: 2px 0 0; font-weight: 700; color: var(--navy); font-size: 19px; }

.areas { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.areas li {
  padding: 10px 18px; border: 1.5px solid var(--navy); border-radius: 999px;
  color: var(--navy); font-weight: 600; background: var(--white);
}

/* ---------- Call-to-action band ---------- */
.cta-band { background: var(--sky); }
.section-sky + .cta-band { background: var(--white); }
.cta-band .wrap {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 24px 48px; padding-block: clamp(48px, 7vw, 80px);
}
.cta-band h2 { font-size: clamp(28px, 3.4vw, 40px); max-width: 22ch; }
.cta-band p { margin: 10px 0 0; color: var(--muted); }

/* ---------- Footer: drawn like a blueprint title block ---------- */
.site-footer {
  background-color: var(--white);
  background-image:
    linear-gradient(rgba(30,43,89,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,43,89,.06) 1px, transparent 1px);
  background-size: 32px 32px;
  border-top: 1px solid var(--line);
  color: var(--navy);
  padding-block: clamp(48px, 7vw, 80px) 28px;
}
.titleblock {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "brand office  phone"
    "brand license builder"
    "pages pages   email";
  gap: 1px;
  background: var(--field);
  border: 2px solid var(--navy);
}
.tb-cell { background: var(--white); padding: 18px 20px; min-width: 0; }
.tb-brand { grid-area: brand; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.tb-office { grid-area: office; }
.tb-phone { grid-area: phone; }
.tb-license { grid-area: license; }
.tb-builder { grid-area: builder; }
.tb-pages { grid-area: pages; }
.tb-email { grid-area: email; }
.tb-brand img { height: 36px; width: auto; }
.tb-brand p { margin: 0; color: var(--muted); font-size: 15px; max-width: 34ch; }
.tb-label { display: block; font-size: 13px; font-weight: 600; color: var(--blue); margin-bottom: 6px; }
.tb-value { color: var(--navy); font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }
a.tb-value { text-decoration: none; }
a.tb-value:hover { color: var(--blue); text-decoration: underline; }
.tb-pages ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.tb-pages a { color: var(--navy); text-decoration: none; }
.tb-pages a:hover { text-decoration: underline; }
.footer-meta {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
  margin-top: 20px; font-size: 14px; color: var(--muted);
}
.footer-meta p { margin: 0; }
.footer-meta a { color: var(--navy); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .titleblock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "brand   brand"
      "office  phone"
      "license builder"
      "email   email"
      "pages   pages";
  }
}

@media (max-width: 860px) {
  .split, .contact-grid, .letter, .reel-split { grid-template-columns: 1fr; }
  .reel { max-width: 360px; }
  .split-reverse > :first-child { order: 0; }
  .video-pair { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery a.is-wide { grid-column: auto; aspect-ratio: 4 / 3; }
  .gallery a.is-wide img { position: static; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 36vw, 240px); }
  .mosaic a:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .mosaic a:nth-child(1) { grid-column: span 2; }
  .page-head-photo img { aspect-ratio: 16 / 9; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .facts { grid-template-columns: 1fr; }
  .facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .form-grid { grid-template-columns: 1fr; }
  .gallery, .gallery-2 { grid-template-columns: 1fr; }
  .gallery a.is-feature, .gallery a.is-wide { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .titleblock {
    grid-template-columns: 1fr;
    grid-template-areas: "brand" "office" "phone" "email" "license" "builder" "pages";
  }
  .lightbox-stage { padding: 0 8px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: -58px; transform: none; height: 44px; }
  .lightbox-prev { left: var(--gutter); }
  .lightbox-next { right: var(--gutter); }
  .lightbox-caption { padding-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
