:root {
  color-scheme: dark;
  --navy: #080f1d;
  --panel: #111d30;
  --gold: #f0c679;
  --red: #bb1426;
  --white: #fbf7f1;
  --muted: #c6cedb;
  font-family: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--navy); color: var(--white); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
.wrap { width: min(1160px, calc(100% - 3rem)); margin-inline: auto; }
.masthead { border-bottom: 1px solid #293348; background: #070c15; }
.bar { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-grid; line-height: 1; }
.brand strong { font: italic 900 2.85rem/.95 Georgia, serif; letter-spacing: -.11em; padding-right: .12em; }
.brand strong span { color: #ff3647; }
.brand small { text-transform: uppercase; letter-spacing: .11em; margin-top: .45rem; font-weight: 700; font-size: .68rem; }
nav { display: flex; gap: clamp(.8rem, 4vw, 2.75rem); }
nav a:hover, .contact-links > a:last-child:hover { color: var(--gold); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .65rem 1.2rem; font-weight: 700; }
.outline { border: 1px solid #bc9c64; }
.outline:hover { background: #ffffff19; }
.primary { background: var(--red); border: 1px solid var(--red); }
.primary:hover { background: #a00f20; }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(90deg,#080f1d 1%,#080f1de8 31%,#080f1d35 88%), linear-gradient(0deg,#080f1d 0%,transparent 39%), url('hero.jpg') center 54% / cover, #233a50;
}
.hero::after { content: ''; position: absolute; pointer-events: none; z-index: -1; right: -55px; bottom: -38px; width: 30%; height: 60%; border-left: 5px solid #df2335; background: linear-gradient(110deg,#bd172b99,transparent 28%); transform: skewX(-25deg); }
.hero-content { padding-block: clamp(5rem, 10vw, 9rem); }
.eyebrow { margin: 0 0 .55rem; color: var(--gold); font-weight: 700; font-size: .875rem; text-transform: uppercase; letter-spacing: .18em; }
h1, h2 { margin: 0; text-transform: uppercase; font-weight: 900; letter-spacing: -.055em; line-height: .95; }
h1 { font-size: clamp(2.6rem, 8.5vw, 7rem); }
h1 span { color: #f13747; }
h2 { font-size: clamp(2.1rem, 5vw, 4rem); }
.intro { max-width: 410px; color: var(--muted); font-size: 1.13rem; margin: 1.4rem 0 1.65rem; }
.actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #33415a; margin-top: 1.75rem; border: 1px solid #33415a; border-top: 2px solid var(--gold); }
.services article { background: var(--panel); padding: 1.4rem; }
.symbol { color: var(--gold); font-size: 1.8rem; }
h3 { margin: .4rem 0 0; line-height: 1.2; }
.services p, .contact p:not(.eyebrow), .project-note { color: var(--muted); margin-bottom: 0; }
.projects { background: var(--panel); border-block: 1px solid #293348; }
.project-layout, .contact { display: flex; gap: 2rem; align-items: center; justify-content: space-between; }
.project-note { flex: 0 1 470px; margin: 0; padding: 1.4rem; border: 1px dashed #68738a; }
.contact-links { display: grid; gap: .6rem; text-align: center; }
.contact-links > a:last-child { text-decoration: underline; overflow-wrap: anywhere; }
footer { border-top: 1px solid #293348; color: var(--muted); }
.footer { padding-block: 1.4rem; }
@media (max-width: 760px) {
  .header-call { display: none; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .project-layout, .contact { display: grid; }
  .contact-links { justify-items: start; }
}
@media (max-width: 415px) {
  .wrap { width: calc(100% - 2rem); }
  .bar { gap: .65rem; }
  nav { gap: .65rem; font-size: .875rem; }
  .services article { padding: .9rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.masthead { position: sticky; top: 0; z-index: 4; background: #070c15f5; backdrop-filter: blur(12px); }
[id] { scroll-margin-top: 100px; }
.hero { background: linear-gradient(90deg,#080f1d 0%,#080f1de0 29%,#080f1d26 86%), linear-gradient(0deg,#080f1d 0%,transparent 33%), url('hero.jpg') 65% 54% / cover, #233a50; }
.hero-content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: min(72vh, 720px); }
.hero h1 { font-size: clamp(2.9rem, 9.5vw, 8rem); }
.hero h1 em { font: inherit; color: var(--gold); }
.projects { background: #0d1625; }
.gallery-note { color: var(--muted); margin: 0; }
.gallery { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(2, minmax(155px, 17vw)); gap: 14px; margin-top: 1.65rem; }
.project { display: grid; position: relative; isolation: isolate; overflow: hidden; align-items: end; border: 1px solid #364259; background: #202b3a; }
.project:first-child { grid-row: span 2; }
.project img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; z-index: -2; transition: transform .5s ease; }
.project::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg,#070d18ed,transparent 58%); }
.project:hover img, .project:focus-visible img { transform: scale(1.055); }
.project span { padding: 1rem 1.25rem; font-weight: 800; font-size: clamp(1.05rem, 2vw, 1.6rem); }
.services article { transition: background .25s ease; }
.services article:hover { background: #1a2940; }
.contact { min-height: 300px; }
.menu { display: none; font: inherit; color: inherit; background: transparent; border: 1px solid #bc9c64; padding: .45rem .85rem; cursor: pointer; }
dialog { width: min(900px, calc(100% - 2rem)); max-height: 90dvh; padding: 1rem; color: var(--white); background: var(--navy); border: 1px solid #bc9c64; }
dialog::backdrop { background: #03070cde; }
dialog form { display: flex; justify-content: flex-end; margin-bottom: .75rem; }
dialog button { font: inherit; color: inherit; background: transparent; cursor: pointer; }
dialog img { display: block; width: 100%; max-height: 65dvh; object-fit: contain; }
dialog p { margin: .6rem 0 0; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-content > *, .reveal { animation: rise .65s both cubic-bezier(.2,.65,.3,1); }
  .hero-content h1 { animation-delay: .1s; }
  .hero-content .intro { animation-delay: .2s; }
  .hero-content .actions { animation-delay: .3s; }
  .reveal:nth-child(2) { animation-delay: .08s; }
  .reveal:nth-child(3) { animation-delay: .16s; }
}
@media (max-width: 760px) {
  .hero { background-position: 65% center; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: none; }
  .project { min-height: 235px; }
  .project:first-child { grid-row: auto; }
  .project-layout { gap: .5rem; }
  .menu:not([hidden]) { display: block; }
  .menu:not([hidden]) + nav { display: none; }
  .menu[aria-expanded="true"] + nav { display: grid; position: absolute; inset: 100% 0 auto; padding: 1rem 1.5rem; background: #0d1625; border-bottom: 1px solid #bc9c64; }
  nav a { padding: .4rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  .project img, .services article { transition: none; }
}

.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.service-card { background: var(--panel); border: 1px solid #364259; border-top: 3px solid var(--gold); overflow: hidden; }
.service-card > img { display: block; width: 100%; height: clamp(160px, 23vw, 270px); object-fit: cover; }
.service-copy { padding: clamp(1.25rem, 3vw, 2rem); }
.service-copy h3 { font-size: clamp(1.4rem, 3vw, 2.15rem); }
.service-copy p, .service-copy ul { color: var(--muted); }
.service-copy ul { padding-left: 1.2rem; margin-bottom: 0; }
.service-copy li + li { margin-top: .35rem; }
.service-copy li::marker { color: var(--gold); }
.hero h1 { font-size: clamp(2.4rem, 7.6vw, 6.7rem); }
.gallery-note { margin-top: 1.4rem; }
.gallery-live { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); grid-template-rows: none; }
.gallery-live .project { min-height: 255px; grid-row: auto; }
.gallery-live .project video, .gallery-live .project iframe { width: 100%; border: 0; aspect-ratio: 9 / 14; background: #080f1d; }
.gallery-live .video-project { display: flex; flex-direction: column; }
@media (max-width: 650px) { .service-grid { grid-template-columns: 1fr; } }

.editor-heading { margin: 1rem 0; font-size: clamp(2.5rem, 6vw, 4.5rem); }
.editor { max-width: 640px; display: grid; gap: 1rem; padding: 1.4rem; margin-bottom: 2.5rem; background: var(--panel); border: 1px solid #364259; }
.editor label { font-weight: 700; }
.editor label input:not([type="checkbox"]) { display: block; width: 100%; margin-top: .25rem; padding: .65rem; font: inherit; }
.editor p { margin: 0; }
.editor button, .editor-list button { cursor: pointer; color: inherit; font: inherit; }
.editor .outline, .editor-list .outline { background: transparent; }
.editor-list { max-width: 640px; padding: 0; list-style: none; }
.editor-list li { padding: .6rem 0; display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.editor-list strong { flex: 1 0 150px; }

/* Homepage */
.site-header {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #070c15f5;
  border-bottom: 1px solid #293348;
  backdrop-filter: blur(12px);
}
.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  min-height: 5rem;
}
.header-inner nav { justify-self: end; }
.hero {
  background:
    linear-gradient(135deg, transparent 78%, #b51d303b 78%, transparent 93%),
    radial-gradient(ellipse at top right, #223f64, var(--navy) 72%);
  border-bottom: 2px solid var(--gold);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding-block: clamp(3rem, 8vw, 7rem);
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 4.5rem); overflow-wrap: break-word; }
.hero h1 span { color: var(--gold); }
.hero-copy > p:not(.eyebrow) { max-width: 34rem; margin-block: 1.25rem; color: var(--muted); }
.hero-logo { display: block; width: 100%; height: auto; border: 1px solid #f0c67955; border-radius: .65rem; box-shadow: 0 1.25rem 3rem #0007; }
.card { background: var(--panel); border: 1px solid #34445d; border-top: 3px solid var(--gold); border-radius: .45rem; }
.service-card { padding: clamp(1.25rem, 3vw, 2rem); }
.service-card li::marker { color: var(--gold); }
.section-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.project-section { background: #0c1627; border-block: 1px solid #293348; }
.project-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; margin-top: 1.5rem; }
.project-card { padding: .65rem; }
.project-card video, .project-card img { display: block; width: 100%; border-radius: .25rem; background: #080f1d; }
.project-card video { aspect-ratio: 9 / 16; max-height: 31rem; object-fit: contain; }
.project-card img { aspect-ratio: 4 / 3; object-fit: cover; }
.project-card h3 { margin: .65rem .2rem; }
.project-card .button { margin: .3rem .2rem; }
.service-card, .project-card { transition: border-color .25s, box-shadow .25s; }
.service-card:hover, .project-card:hover, .project-card:focus-within { border-color: #f0c67988; box-shadow: 0 .75rem 1.75rem #0004; }

/* Login and editor */
[hidden] { display: none !important; }
.login-page { min-height: 100vh; background: radial-gradient(ellipse at top right, #233d61, var(--navy) 65%); }
.login-shell { max-width: 54rem; padding-block: clamp(2rem, 7vw, 5rem); }
.back-link { display: inline-block; margin-bottom: 1rem; color: var(--gold); }
.login-card { display: grid; grid-template-columns: 1fr 1fr; align-items: center; overflow: hidden; background: var(--panel); border: 1px solid #34445d; border-top: 3px solid var(--gold); border-radius: .75rem; box-shadow: 0 1.5rem 4rem #0006; }
.login-card img { display: block; width: 100%; height: auto; }
.login-content { padding: clamp(1.25rem, 4vw, 2.5rem); }
.login-content h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.login-content p { color: var(--muted); }
.login-form { display: grid; gap: .65rem; }
.login-form label { font-weight: 700; }
.login-form input, .editor input:not([type="hidden"]) { padding: .65rem .8rem; min-height: 48px; width: 100%; background: var(--navy); color: var(--white); border: 1px solid #52637c; border-radius: .35rem; font: inherit; }
.login-form button { margin-top: .5rem; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.login-content .login-error { color: #ffdce1; background: #b51d302c; border-left: 3px solid #ff7888; padding: .65rem .8rem; }
.editor-toolbar { display: flex; justify-content: space-between; gap: .75rem; border-bottom: 1px solid #34445d; padding-bottom: 1rem; }
.editor-toolbar button { background: transparent; color: var(--gold); font: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, video:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.editor-page .editor { box-shadow: 0 1rem 2.5rem #0004; }
.editor-list li:hover { background: var(--panel); }

@media (max-width: 760px) {
  .header-inner { grid-template-columns: minmax(0, 1fr); padding-block: .7rem; }
  .header-inner nav { grid-column: 1; justify-self: stretch; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-logo { grid-row: 1; max-width: 26rem; }
}
@media (max-width: 640px) {
  .login-card { grid-template-columns: 1fr; }
  .login-card img { max-height: 13rem; object-fit: contain; background: var(--navy); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .hero-logo, .login-card, .editor-heading, #project-form, .editor-list { animation: rise .55s ease both; }
  .hero-logo, #project-form { animation-delay: .1s; }
  @supports (animation-timeline: view()) {
    .service-card, .project-card {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .service-card, .project-card { transition: none; }
}

/* Background accents and small-screen layouts */
#about, #services, #projects, #area, #reviews, #contact, .editor-page { position: relative; isolation: isolate; }
#about::before, #services::before, #projects::before, #area::before, #reviews::before, #contact::before, .editor-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
#services::before { background: radial-gradient(ellipse at top right, #24518c62, transparent 65%); }
#projects::before { background: radial-gradient(ellipse at 8% 40%, #275da16b, transparent 60%); }
#about::before { background: radial-gradient(ellipse at 10% 0%, #24518c55, transparent 58%); }
#area::before { background: radial-gradient(ellipse at 90% 20%, #24518c55, transparent 62%); }
#reviews::before { background: radial-gradient(ellipse at 12% 80%, #59233f44, transparent 60%); }
#contact::before { background: radial-gradient(ellipse at bottom right, #59233f55, transparent 65%); }
.editor-page::before {
  height: min(38rem, 80vh);
  background: radial-gradient(ellipse at top right, #275da177, transparent 65%);
}
.hero::after {
  z-index: -1;
  inset: 0;
  width: auto;
  height: auto;
  border: none;
  opacity: 0;
  background: linear-gradient(118deg, transparent 40%, #b51d304d 47%, #f0c67938 51%, transparent 60%);
}
#about h2::after, #services h2::after, #projects h2::after, #area h2::after, #reviews h2::after, #contact h2::after, .editor-heading::after {
  content: "";
  display: block;
  height: 3px;
  width: 3.5rem;
  margin-top: .85rem;
  border-radius: 1rem;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
footer { background: #101c30; }

@media (prefers-reduced-motion: no-preference) {
  .hero::after { animation: brand-sweep 3.2s ease-out both; }
  .editor-page::before, .login-card { animation: rise .65s ease both; }
  @supports (animation-timeline: view()) {
    #about::before, #services::before, #projects::before, #area::before, #reviews::before, #contact::before {
      animation: section-glow linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 85%;
    }
  }
}
@keyframes brand-sweep {
  0% { opacity: 0; transform: translateX(-55%); }
  35% { opacity: .85; }
  100% { opacity: 0; transform: translateX(55%); }
}
@keyframes section-glow {
  from { opacity: .35; }
  to { opacity: 1; }
}
@media (max-width: 760px) {
  .header-inner nav { display: flex; justify-self: stretch; justify-content: space-between; }
  .header-inner nav a { display: flex; align-items: center; min-height: 44px; font-size: .75rem; }
  .hero h1 { font-size: clamp(2rem, 7vw, 3rem); }
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  body { padding-bottom: 4.75rem; }
  .call-dock { display: flex; }
}
@media (max-width: 540px) {
  .project-gallery { grid-template-columns: minmax(0, 1fr); }
  .project-card video { max-height: min(70svh, 29rem); }
  .hero-copy .actions { display: grid; }
}

.area-lead, .reviews-card p { color: var(--muted); max-width: 40rem; }
.area-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.area-card, .reviews-card {
  padding: clamp(1.25rem, 3vw, 2rem);
}
.area-card h3 { margin-top: 0; font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.area-card p { color: var(--muted); margin-bottom: 0; }
.reviews-card .actions { margin-top: 1.25rem; }
.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.6rem;
}
.footer strong { display: block; color: var(--white); }
.footer p { margin: .35rem 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; }
.footer-links a { color: var(--gold); }
.call-dock {
  display: none;
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 6;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  background: var(--red);
  border: 1px solid var(--red);
  border-radius: .45rem;
  font-weight: 800;
  box-shadow: 0 .75rem 1.75rem #0008;
}
@media (max-width: 760px) {
  .area-grid, .about-layout, .contact { grid-template-columns: 1fr; }
}

.about-layout, .contact {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
  align-items: start;
}
.about-card, .hours-card, .estimate-form { padding: clamp(1.25rem, 3vw, 2rem); }
.about-card p { color: var(--muted); }
.hours-card h3 { margin-top: 0; }
.hours-card ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.hours-card li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .45rem 0;
  border-bottom: 1px solid #34445d;
  color: var(--muted);
}
.hours-card strong { color: var(--white); font-weight: 700; }
.contact { min-height: 0; }
.estimate-form { display: grid; gap: .85rem; }
.estimate-form label { font-weight: 700; }
.estimate-form input, .estimate-form select, .estimate-form textarea {
  display: block;
  width: 100%;
  margin-top: .3rem;
  padding: .65rem .8rem;
  min-height: 48px;
  background: var(--navy);
  color: var(--white);
  border: 1px solid #52637c;
  border-radius: .35rem;
  font: inherit;
}
.estimate-form textarea { min-height: 7rem; resize: vertical; }
.estimate-form button { color: inherit; font: inherit; cursor: pointer; }
.honeypot { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
#estimate-status { margin: 0; color: var(--gold); }

