/* BR Plumbing & Heating
   Chrome blue — sampled from the van panel in Images/Van.jpg (#364763)
   Orange — Pantone 021 C (#FE5000)
   Designs: 1 Lines, 2 Split, 3 Poster, 4 Line Alt. Set on <html data-design="…">. */

:root {
  --orange: #fe5000;
  --blue: #364763;
  --blue-deep: #2a3b54;
  --blue-ink: #162232;
  --ink: #101820;
  --white: #f5f7fa;
  --line: rgba(254, 80, 0, 0.55);
  --hair: rgba(245, 247, 250, 0.16);
  --header: rgba(16, 24, 32, 0.94);
  --shadow: 14px 14px 0 var(--orange);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100%;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  background: var(--blue);
  color: var(--white);
  overflow-x: clip;
  transition: background-color 0.45s ease;
}

address { font-style: normal; line-height: 1.5; }

html[data-design="2"] body { background: var(--blue-deep); }

/* Line Alt — lighter bar, darker page */
html[data-design="4"] body { background: var(--blue-ink); }

html[data-design="4"] .site-header,
html[data-design="4"] .header-panel {
  background: var(--blue);
}

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

[hidden] { display: none !important; }

button, input, textarea { font: inherit; }

a { color: var(--orange); }

:focus { outline: none; }

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

::selection {
  background: var(--orange);
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--orange);
  color: var(--ink);
  padding: 0.6rem 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus { top: 0.6rem; }

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

.wrap {
  width: min(1180px, calc(100% - 8vw));
  margin-inline: auto;
}

#services, #work, #phones, #address { scroll-margin-top: 5.4rem; }

h1, h2, h3 { text-wrap: balance; }

h1, h2, h3, p { margin-top: 0; }

/* Fixed line field */
.bg-lines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' fill='none'><path d='M-20 180 L200 0' stroke='%23FE5000' stroke-opacity='0.55' stroke-width='1'/><path d='M-20 120 L200 -40' stroke='%23FE5000' stroke-opacity='0.28' stroke-width='1'/><path d='M20 240 L240 20' stroke='%2394A9C4' stroke-opacity='0.45' stroke-width='1'/><circle cx='36' cy='36' r='22' stroke='%23FE5000' stroke-opacity='0.45'/><circle cx='180' cy='168' r='10' stroke='%2394A9C4' stroke-opacity='0.5'/></svg>");
  background-size: 220px 220px;
  animation: drift 50s linear infinite;
}

@keyframes drift {
  to { background-position: 220px 220px; }
}

.site-header,
main,
.site-footer { position: relative; z-index: 1; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.4rem;
  padding: 0.7rem 4vw;
  background: var(--header);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--orange);
  overflow: visible;
}

.logo,
.nav-toggle,
.header-panel { position: relative; z-index: 2; }

.header-van {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 0;
  z-index: 1;
  pointer-events: none;
}

.header-van img {
  position: absolute;
  left: 0;
  bottom: -8px;
  height: 74px;
  width: auto;
  max-width: none;
  animation: van-drive 22s linear infinite;
}

@keyframes van-drive {
  from { transform: translateX(-120%); }
  to { transform: translateX(calc(100vw + 30%)); }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--white);
  text-decoration: none;
  flex: 0 0 auto;
}

.logo svg { width: 32px; height: 42px; }

.logo-name {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.logo-name b {
  font-size: 1.85rem;
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: var(--orange);
}

.logo-name span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.05;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.45rem 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  cursor: pointer;
}

.header-panel {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.header-panel nav {
  display: flex;
  gap: 1.25rem;
}

.header-panel nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

.header-panel nav a[aria-current="page"],
.header-panel nav a:hover { color: var(--orange); }

.design-switch {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.design-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 247, 250, 0.7);
}

.opts { display: flex; }

.opts button {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.42rem 0.72rem;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.opts button + button { margin-left: -1px; }

.opts button.is-on {
  background: var(--orange);
  color: var(--ink);
  border-color: var(--orange);
  position: relative;
  z-index: 1;
}

.opts button:hover:not(.is-on) { border-color: var(--white); }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - 4.4rem);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: end;
  padding: 4.5rem 4vw 3rem;
  overflow: hidden;
}

.hero-draw {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-draw path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.4;
  stroke-opacity: 0.75;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 7 12;
  animation: flow 24s linear infinite;
}

.hero-draw path:nth-child(2) {
  stroke-opacity: 0.4;
  animation-duration: 32s;
  animation-direction: reverse;
}

.hero-draw path:nth-child(3) {
  stroke-opacity: 0.9;
  stroke-dasharray: 90 400;
  animation-duration: 9s;
}

@keyframes flow {
  to { stroke-dashoffset: -480; }
}

.hero-copy,
.hero-photo { position: relative; z-index: 1; }

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(3rem, 6.2vw, 5.7rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
  max-width: 11ch;
}

h1 em {
  font-style: normal;
  color: var(--orange);
}

.lede {
  max-width: 38rem;
  font-size: 1.12rem;
  line-height: 1.55;
  color: rgba(245, 247, 250, 0.92);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.45rem 0 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.15rem;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  color: var(--ink);
  background: var(--orange);
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }

.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); filter: none; }

.btn-ink {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.phone-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.3rem;
  margin: 0;
}

.phone-row a {
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(254, 80, 0, 0.7);
}

.hero-photo {
  margin: 0;
  background: var(--blue-ink);
}

.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.side-label { display: none; }

/* Design 1 — Lines */
html:is([data-design="1"], [data-design="4"]) .hero {
  overflow: visible;
  align-items: start;
  min-height: 0;
  padding-top: 8.4rem;
  padding-bottom: 2.6rem;
}

html:is([data-design="1"], [data-design="4"]) .hero-photo { box-shadow: var(--shadow); }

/* Design 2 — Split */
html[data-design="2"] .hero {
  align-items: stretch;
  gap: 0;
  padding: 0;
  min-height: calc(100svh - 4.4rem);
}

html[data-design="2"] .hero-draw { width: 52%; }

html[data-design="2"] .hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 5rem 6vw 3.5rem 4.5rem;
}

html[data-design="2"] .side-label {
  display: block;
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange);
}

html[data-design="2"] .hero-photo img {
  height: 100%;
  min-height: calc(100svh - 4.4rem);
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 50% 45%;
}

/* Design 3 — Poster */
html[data-design="3"] .hero {
  background: var(--orange);
  color: var(--ink);
  align-items: center;
  padding: 3.5rem 4vw 4rem;
}

html[data-design="3"] .hero-draw path { stroke: var(--ink); }

html[data-design="3"] .hero .eyebrow { color: var(--ink); }

html[data-design="3"] .hero h1 {
  max-width: 9ch;
  font-size: clamp(3.5rem, 8vw, 7.2rem);
  line-height: 0.86;
}

html[data-design="3"] .hero h1 em { color: var(--white); }

html[data-design="3"] .lede { color: var(--ink); }

html[data-design="3"] .hero .btn-ghost:hover { background: rgba(16, 24, 32, 0.08); }

html[data-design="3"] .hero .btn-orange {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

html[data-design="3"] .hero .btn-orange:hover {
  filter: none;
  background: var(--blue-ink);
}

html[data-design="3"] .phone-row a {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

html[data-design="3"] .hero-photo {
  border: 6px solid var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
}

/* Marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(254, 80, 0, 0.4);
  background: rgba(16, 24, 32, 0.38);
  padding: 0.85rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: ticker 36s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track p {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin: 0;
  padding-right: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.marquee-track span {
  width: 7px;
  height: 7px;
  background: var(--orange);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

html[data-design="3"] .marquee {
  background: var(--blue-ink);
  border-color: var(--blue-ink);
}

/* Sections */
.band { padding: 5rem 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.section-head h2,
.about h2,
.cta h2,
.page-intro h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.section-note {
  margin: 0;
  max-width: 22rem;
  color: rgba(245, 247, 250, 0.82);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.service {
  position: relative;
  padding: 1.3rem 1.2rem 1.4rem;
  background: rgba(18, 28, 42, 0.88);
  border: 1px solid var(--hair);
  height: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.service::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0.22);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.service:hover { transform: translateY(-4px); border-color: rgba(254, 80, 0, 0.65); }
.service:hover::before { transform: scaleX(1); }

.service svg {
  width: 38px;
  height: 38px;
  color: var(--orange);
  margin: 0.35rem 0 0.8rem;
}

.idx {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--orange);
}

.service h3 {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.service p {
  margin: 0;
  color: rgba(245, 247, 250, 0.86);
}

html[data-design="2"] .services-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

html[data-design="2"] .service {
  display: grid;
  grid-template-columns: 4.2rem 2.6rem minmax(9rem, 16rem) 1fr;
  gap: 0.8rem 1rem;
  align-items: center;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--hair);
  padding: 1.15rem 0.2rem;
}

html[data-design="2"] .service::before { display: none; }
html[data-design="2"] .service:hover { transform: none; background: rgba(255, 255, 255, 0.04); }
html[data-design="2"] .service svg { margin: 0; }
html[data-design="2"] .service h3 { margin: 0; }
html[data-design="2"] .service:last-child { border-bottom: 1px solid var(--hair); }

html[data-design="3"] .services-grid {
  grid-template-columns: 1.35fr 1fr 1fr;
}

html[data-design="3"] .service:first-child {
  grid-column: 1;
  grid-row: 1 / span 2;
  background: var(--orange);
  color: var(--ink);
  border-color: var(--orange);
}

html[data-design="3"] .service:first-child::before { background: var(--ink); }
html[data-design="3"] .service:first-child .idx,
html[data-design="3"] .service:first-child svg,
html[data-design="3"] .service:first-child p { color: var(--ink); }
html[data-design="3"] .service:first-child p { color: rgba(16, 24, 32, 0.86); }
html[data-design="3"] .service:last-child { grid-column: 1 / -1; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.tile {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 240px;
  color: var(--white);
  text-decoration: none;
  background: var(--blue-ink);
  aspect-ratio: 4 / 5;
}

.tile:nth-child(3n + 2) { aspect-ratio: 1 / 1; }

.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.tile:hover img { transform: scale(1.05); }

.cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 2.4rem 0.9rem 0.85rem;
  background: linear-gradient(transparent, rgba(16, 24, 32, 0.9));
}

.cap strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.cap em {
  font-style: normal;
  font-size: 0.88rem;
  color: rgba(245, 247, 250, 0.84);
}

.tile:hover .cap strong { color: var(--orange); }

.tile::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 16px;
  height: 16px;
  border-top: 2px solid var(--orange);
  border-left: 2px solid var(--orange);
  z-index: 1;
  pointer-events: none;
}

.film { min-width: 0; }

html:is([data-design="1"], [data-design="2"], [data-design="4"]) .gallery {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.7rem;
}

html:is([data-design="1"], [data-design="4"]) .film { overflow: hidden; }

html:is([data-design="1"], [data-design="2"], [data-design="4"]) .tile {
  flex: 0 0 min(72vw, 340px);
  scroll-snap-align: start;
  aspect-ratio: 3 / 4;
}

html:is([data-design="1"], [data-design="2"], [data-design="4"]) .gallery::-webkit-scrollbar { height: 8px; }
html:is([data-design="1"], [data-design="2"], [data-design="4"]) .gallery::-webkit-scrollbar-track { background: rgba(16, 24, 32, 0.35); }
html:is([data-design="1"], [data-design="2"], [data-design="4"]) .gallery::-webkit-scrollbar-thumb { background: var(--orange); }

html:is([data-design="1"], [data-design="4"]) .gallery.is-marquee {
  width: max-content;
  overflow: visible;
  scroll-snap-type: none;
  animation: filmroll 70s linear infinite;
}

html:is([data-design="1"], [data-design="4"]) .gallery-set {
  display: flex;
  gap: 0.85rem;
  padding-right: 0.85rem;
}

.film:hover .gallery.is-marquee,
.film.is-paused .gallery.is-marquee,
html.is-managing .gallery.is-marquee {
  animation-play-state: paused;
}

html.is-managing:is([data-design="1"], [data-design="4"]) .film { overflow-x: auto; }

@keyframes filmroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

html[data-design="3"] .gallery {
  grid-template-columns: 1.45fr 1fr 1fr;
  grid-auto-rows: 210px;
}

html[data-design="3"] .tile,
html[data-design="3"] .tile:nth-child(3n + 2) {
  aspect-ratio: auto;
  height: 100%;
  min-height: 0;
}

html[data-design="3"] .tile:first-child {
  grid-column: 1;
  grid-row: span 2;
}

/* About + CTA */
.about { padding: 1rem 0 4rem; }

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: end;
  padding-top: 2.5rem;
  border-top: 1px solid var(--hair);
}

.about p { margin: 0 0 1rem; font-size: 1.15rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  border: 1px solid var(--orange);
  color: var(--orange);
  padding: 0.4rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--orange);
}

.cta {
  position: relative;
  overflow: hidden;
  background: var(--orange);
  color: var(--ink);
  padding: 4.5rem 0;
}

.cta::before,
.cta::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(16, 24, 32, 0.28);
  border-radius: 50%;
  pointer-events: none;
}

.cta::before { width: 320px; height: 320px; right: -90px; top: -120px; }
.cta::after { width: 190px; height: 190px; right: -10px; top: -40px; }

.cta h2 { max-width: 14ch; }

.cta p { max-width: 36rem; font-size: 1.1rem; }

.cta .btn-ghost { color: var(--ink); }
.cta .btn-ghost:hover { background: rgba(16, 24, 32, 0.08); }

html[data-design="3"] .cta {
  background: var(--blue-ink);
  color: var(--white);
}

html[data-design="3"] .cta::before,
html[data-design="3"] .cta::after { border-color: rgba(254, 80, 0, 0.45); }

html[data-design="3"] .cta .btn-ink {
  background: var(--orange);
  color: var(--ink);
  border-color: var(--orange);
}

html[data-design="3"] .cta .btn-ghost { color: var(--white); }
html[data-design="3"] .cta .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 2.5rem 0 1.4rem;
  border-top: 2px solid var(--orange);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.site-footer a { color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(254, 80, 0, 0.7); }
.site-footer a:hover { color: var(--orange); }

.site-footer h2 {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.site-footer ul, .site-footer address { margin: 0; padding: 0; font-style: normal; }
.site-footer li { list-style: none; margin: 0.25rem 0; }

.footer-brand p {
  margin: 0.4rem 0 0;
  color: rgba(245, 247, 250, 0.8);
  max-width: none;
  white-space: nowrap;
  font-size: clamp(0.7rem, 2.15vw, 1.0625rem);
}

.legal {
  margin: 1.6rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--hair);
  color: rgba(245, 247, 250, 0.62);
  font-size: 0.88rem;
}

.legal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.4rem;
  align-items: baseline;
  justify-content: space-between;
}

.staff-btn {
  background: none;
  border: 0;
  color: var(--orange);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.shot {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.tile-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  background: var(--orange);
  color: var(--ink);
  border: 0;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.5rem;
  cursor: pointer;
}

.manage-bar {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr auto;
  gap: 0.7rem;
  align-items: end;
  margin-bottom: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--hair);
  background: rgba(18, 28, 42, 0.92);
}

.manage-bar label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.manage-bar input {
  background: #f4f7fb;
  color: var(--ink);
  border: 2px solid transparent;
  padding: 0.65rem 0.7rem;
}

.manage-bar input:focus { border-color: var(--orange); outline: none; }
.manage-bar .form-error { grid-column: 1 / -1; }

.form-error { color: #ffb199; font-weight: 700; margin: 0.4rem 0 0; }

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

.people-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.person-card {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 1rem;
  align-items: stretch;
  min-height: 210px;
}

.person-card h2 { margin-bottom: 0.35rem; }

.person-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0;
}

.person-links a {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(254, 80, 0, 0.75);
}

.person-links .sub { border-bottom: 0; }

.portrait {
  position: relative;
  margin: 0;
  min-height: 190px;
  background:
    linear-gradient(135deg, rgba(254, 80, 0, 0.16), transparent 42%),
    rgba(8, 12, 18, 0.35);
  border: 1px solid rgba(254, 80, 0, 0.55);
  overflow: hidden;
}

.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 18%;
}

.portrait-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 0.7rem;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portrait-add {
  position: absolute;
  left: 0.45rem;
  right: 0.45rem;
  bottom: 0.45rem;
  z-index: 2;
  background: var(--orange);
  color: var(--ink);
  border: 0;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.35rem 0.4rem;
  cursor: pointer;
}

.login-dialog {
  border: 2px solid var(--orange);
  background: var(--blue-ink);
  color: var(--white);
  padding: 1.3rem 1.25rem 1.4rem;
  width: min(440px, calc(100vw - 2rem));
}

.login-dialog::backdrop { background: rgba(10, 16, 24, 0.78); }

.login-dialog h2 {
  margin: 0 0 0.4rem;
  font-size: 1.7rem;
}

.login-dialog p { margin: 0 0 0.9rem; }

.login-dialog label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.login-dialog input {
  background: #f4f7fb;
  color: var(--ink);
  border: 2px solid transparent;
  padding: 0.75rem 0.8rem;
}

.login-dialog input:focus { border-color: var(--orange); outline: none; }

/* Contact page */
.page-intro { padding: 4.2rem 0 2rem; }

html[data-design="3"] .page-intro {
  background: var(--orange);
  color: var(--ink);
  padding: 4.5rem 0 3rem;
}

html[data-design="3"] .page-intro .eyebrow { color: var(--ink); }
html[data-design="3"] .page-intro .lede { color: var(--ink); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  padding-bottom: 4rem;
}

.card {
  position: relative;
  background: rgba(18, 28, 42, 0.9);
  border: 1px solid var(--hair);
  padding: 1.35rem 1.3rem 1.45rem;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 2px;
  background: var(--orange);
}

.card h2 {
  margin: 0.2rem 0 0.7rem;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.card p { margin: 0 0 0.7rem; }

.contact-list { margin: 0; padding: 0; }
.contact-list li {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  align-items: baseline;
  margin: 0.55rem 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.contact-list a { color: var(--white); text-decoration: none; }
.contact-list a:hover { color: var(--orange); }

.sub {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange) !important;
}

.person a {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(254, 80, 0, 0.75);
}

.card-map { grid-column: 1 / -1; min-height: 340px; display: flex; flex-direction: column; }
.card-form { grid-column: 1 / -1; }

.map-frame {
  border: 0;
  width: 100%;
  flex: 1;
  min-height: 280px;
  background: var(--blue-ink);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.field { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; }
.field-wide { grid-column: 1 / -1; }

.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: 2px solid transparent;
  background: #f4f7fb;
  color: var(--ink);
  border-radius: 0;
}

.field textarea { min-height: 140px; resize: vertical; }

.field input:focus,
.field textarea:focus { border-color: var(--orange); }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  align-items: center;
  margin-top: 0.3rem;
}

.form-note { margin: 0.8rem 0 0; color: rgba(245, 247, 250, 0.86); }

html[data-design="2"] .contact-layout { grid-template-columns: 0.9fr 1.1fr; }

html[data-design="2"] .card-map {
  grid-column: 2;
  grid-row: 1;
  min-height: 320px;
}

html[data-design="2"] .card-form { grid-column: 1 / -1; }

html[data-design="3"] .card:first-child {
  background: var(--blue-ink);
}

/* Lightbox */
.lightbox {
  border: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  background: transparent;
  color: var(--white);
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.lightbox::backdrop { background: rgba(10, 16, 24, 0.88); }

.lightbox figure { margin: 0; max-width: min(1000px, 82vw); }

.lightbox img {
  max-width: min(1000px, 82vw);
  max-height: 78vh;
  width: auto;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
  box-shadow: var(--shadow);
}

.lightbox figcaption {
  margin-top: 0.7rem;
  text-align: center;
  font-weight: 600;
}

.lightbox button {
  background: var(--orange);
  color: var(--ink);
  border: 0;
  font-weight: 800;
  cursor: pointer;
  padding: 0.7rem 0.85rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

/* Reveal */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  html.js .reveal.in { opacity: 1; transform: none; }

  .hero-copy > * {
    animation: rise 0.8s ease both;
  }

  .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
  .hero-copy > *:nth-child(5) { animation-delay: 0.32s; }

  main.swap { animation: rise 0.45s ease; }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .header-van img { left: 18%; }
}

/* Responsive */
@media (max-width: 980px) {
  html:is([data-design="1"], [data-design="4"]) .services-grid,
  html[data-design="3"] .services-grid { grid-template-columns: 1fr 1fr; }

  html[data-design="3"] .service:first-child,
  html[data-design="3"] .service:last-child {
    grid-column: auto;
    grid-row: auto;
  }

  .footer-grid,
  .about-grid,
  .contact-layout,
  .form-grid,
  .people-row,
  .manage-bar { grid-template-columns: 1fr; }

  html[data-design="2"] .card-map {
    grid-column: auto;
    grid-row: auto;
  }

  .card-map, .card-form, .field-wide { grid-column: auto; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .header-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    padding: 0.4rem 5vw 1.2rem;
    background: var(--ink);
    border-bottom: 2px solid var(--orange);
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .header-panel.is-open { display: flex; }

  .header-panel nav { flex-direction: column; gap: 0; }

  .header-panel nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .design-switch { flex-wrap: wrap; }

  .hero,
  html:is([data-design="1"], [data-design="4"]) .hero,
  html[data-design="2"] .hero,
  html[data-design="3"] .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 1.4rem;
    align-items: start;
    padding: 2rem 5vw 2.2rem;
  }

  html[data-design="2"] .hero-copy { padding: 0.4rem 0 0; }
  html[data-design="2"] .hero-photo img { min-height: 260px; height: 52vw; }
  html[data-design="2"] .hero-photo { order: -1; }
  html[data-design="2"] .side-label { display: none; }
  html[data-design="2"] .hero-draw { width: 100%; }

  html:is([data-design="1"], [data-design="4"]) .hero-photo { box-shadow: 8px 8px 0 var(--orange); }

  .hero h1,
  html[data-design="3"] .hero h1 { max-width: none; font-size: clamp(2.7rem, 12vw, 4.4rem); }

  html:is([data-design="1"], [data-design="4"]) .hero { padding-bottom: 2.2rem; }

  .section-head { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 901px) {
  .header-panel { display: flex !important; }
}

@media (max-width: 720px) {
  .services-grid,
  html:is([data-design="1"], [data-design="4"]) .services-grid,
  html[data-design="3"] .services-grid { grid-template-columns: 1fr !important; }

  html[data-design="2"] .service {
    grid-template-columns: auto 1fr;
    align-items: start;
  }

  html[data-design="2"] .service .idx { grid-column: 1; grid-row: 1; }
  html[data-design="2"] .service svg { grid-column: 2; grid-row: 1; margin-top: 0; }
  html[data-design="2"] .service h3 { grid-column: 1 / -1; }
  html[data-design="2"] .service p { grid-column: 1 / -1; }

  .gallery,
  html[data-design="3"] .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .tile,
  .tile:nth-child(3n + 2),
  html[data-design="3"] .tile,
  html[data-design="3"] .tile:first-child {
    aspect-ratio: 4 / 5;
    height: auto;
    grid-row: auto;
    grid-column: auto;
  }

  html:is([data-design="1"], [data-design="2"], [data-design="4"]) .gallery { display: flex; }
  html:is([data-design="1"], [data-design="2"], [data-design="4"]) .tile { aspect-ratio: 3 / 4; }

  .person-card { grid-template-columns: 1fr 120px; }

  .lightbox[open] { flex-direction: column; }
  .lightbox figure { max-width: 92vw; }
  .lightbox img { max-width: 92vw; box-shadow: 8px 8px 0 var(--orange); }
}

@media print {
  .bg-lines, .design-switch, .nav-toggle, .marquee, .lightbox, .hero-draw, .header-van { display: none !important; }
  body, .site-header, .site-footer, .cta, .page-intro { background: white !important; color: black !important; }
  a { color: black; }
}
