:root {
  --ink: #f6efe5;
  --muted: #c9beb0;
  --paper: #332f31;
  --panel: #403a3c;
  --panel-soft: #4b4444;
  --deep: #272629;
  --white: #ffffff;
  --stone: #7d7470;
  --copper: #d09a6a;
  --champagne: #ead8b8;
  --line: rgba(245, 240, 230, 0.14);
  --shadow: 0 24px 80px rgba(12, 10, 10, 0.34);
  --radius: 18px;
  --radius-lg: 28px;
  --immersive-shadow: 0 28px 75px rgba(12, 10, 10, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 78px;
  padding: 16px clamp(18px, 4vw, 58px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  background: rgba(51, 47, 49, 0.9);
  box-shadow: 0 10px 30px rgba(12, 10, 10, 0.18);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand span {
  padding-bottom: 3px;
  border-bottom: 2px solid var(--copper);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  opacity: 0.88;
}

.site-nav a:hover {
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-phone {
  color: var(--champagne);
  font-size: 0.94rem;
  font-weight: 900;
  white-space: nowrap;
}

.header-cta {
  min-height: 42px;
  padding: 11px 16px;
  font-size: 0.9rem;
}

.nav-mobile-action {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  min-height: 94vh;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--deep);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/renovaverse-hero.png");
  background-position: center;
  background-size: cover;
  filter: saturate(0.8) contrast(1.04);
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(33, 31, 32, 0.9) 0%, rgba(45, 41, 42, 0.62) 48%, rgba(45, 41, 42, 0.2) 100%),
    linear-gradient(0deg, rgba(39, 37, 39, 0.86) 0%, rgba(39, 37, 39, 0.08) 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 36px));
  padding: 150px 0 clamp(48px, 8vh, 92px);
  margin: 0 auto;
  text-align: center;
}

.hero-content::after {
  content: "";
  display: block;
  width: min(520px, 46vw);
  height: 1px;
  margin: 34px auto 0;
  background: linear-gradient(90deg, var(--champagne), transparent);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--champagne);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0c891;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3.4rem, 11vw, 8.2rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 12ch;
  margin-inline: auto;
  font-size: clamp(3.05rem, 8.8vw, 7.2rem);
}

h2 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.7rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 590px;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.06rem, 2vw, 1.3rem);
}

.hero-actions,
.contact-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-actions {
  justify-content: center;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 820px;
  margin: 24px auto 0;
}

.hero-trust span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(234, 216, 184, 0.3);
  border-radius: 999px;
  padding: 8px 13px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.09);
  font-size: 0.88rem;
  font-weight: 850;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 19px;
  font-weight: 850;
  line-height: 1.1;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #201915;
  background: var(--copper);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(234, 216, 184, 0.54);
  background: rgba(255, 255, 255, 0.08);
}

.section-pad {
  padding: clamp(76px, 11vw, 142px) clamp(18px, 5vw, 72px);
}

.service-area-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.85fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: clamp(34px, 5vw, 58px) clamp(18px, 5vw, 72px);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(208, 154, 106, 0.12), rgba(255, 255, 255, 0.02)),
    var(--panel);
}

.service-area-band h2 {
  max-width: 680px;
  font-size: clamp(1.6rem, 3.4vw, 3.35rem);
}

.service-area-band p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.intro,
.work,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.78fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
}

.intro {
  position: relative;
  background: var(--paper);
}

.intro::before,
.services::before,
.social-showcase::before,
.faq::before,
.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(18px, 5vw, 72px);
  right: clamp(18px, 5vw, 72px);
  height: 1px;
  background: var(--line);
}

.intro-details,
.work-copy p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.06rem;
}

.intro-details p {
  max-width: 620px;
  margin: 38px 0 0;
}

.intro-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 38px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--immersive-shadow);
}

.intro-stats div {
  display: grid;
  align-content: end;
  gap: 18px;
  min-height: 210px;
  padding: clamp(24px, 3vw, 34px);
  background:
    radial-gradient(circle at 18% 14%, rgba(234, 216, 184, 0.1), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    var(--panel);
}

.intro-stats div::before {
  content: "";
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--copper), var(--champagne));
}

.intro-stats strong {
  max-width: 12ch;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.4vw, 2.35rem);
  line-height: 0.98;
}

.intro-stats span {
  color: var(--muted);
  font-size: 0.98rem;
}

.services {
  position: relative;
  background: var(--deep);
}

.section-heading {
  display: grid;
  gap: 14px;
  max-width: 980px;
  margin-bottom: clamp(30px, 6vw, 62px);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  background: transparent;
  border: 0;
}

.service-card {
  display: grid;
  min-height: 260px;
  align-content: end;
  gap: 22px;
  position: relative;
  padding: clamp(24px, 3.4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 18% 12%, rgba(234, 216, 184, 0.1), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    var(--panel);
  box-shadow: var(--immersive-shadow);
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.service-card::before {
  content: "";
  width: 58px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--copper), var(--champagne));
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(208, 154, 106, 0.56);
  box-shadow: 0 34px 90px rgba(12, 10, 10, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.service-card h3 {
  max-width: 12ch;
  color: var(--ink);
  font-size: clamp(1.8rem, 3.5vw, 3.1rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.service-card p,
.timeline-item p {
  margin: 0;
  color: var(--muted);
}

.service-card p {
  max-width: 560px;
  font-size: 1.02rem;
}

.service-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(234, 216, 184, 0.22);
}

.service-card-actions a,
.project-filters a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid rgba(234, 216, 184, 0.28);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--champagne);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.035);
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.service-card-actions a:hover,
.project-filters a:hover,
.project-filters a.is-active {
  transform: translateY(-1px);
  border-color: rgba(208, 154, 106, 0.72);
  color: var(--white);
  background: rgba(208, 154, 106, 0.14);
}

.process {
  color: var(--white);
  background: #393436;
}

.process .eyebrow {
  color: var(--champagne);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: transparent;
  gap: 18px;
}

.timeline-item {
  display: grid;
  align-content: end;
  gap: 22px;
  position: relative;
  min-height: 230px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.035);
  box-shadow: var(--immersive-shadow);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.timeline-item::before {
  content: "";
  width: 54px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--copper), var(--champagne));
}

.timeline-item:hover {
  transform: translateY(-4px);
  border-color: rgba(208, 154, 106, 0.56);
  background:
    radial-gradient(circle at 22% 14%, rgba(208, 154, 106, 0.1), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 34px 90px rgba(12, 10, 10, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.timeline-item h3 {
  max-width: 10ch;
  color: var(--ink);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 0.96;
}

.timeline-item p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.02rem;
}

.work {
  align-items: center;
  background: #302c2e;
}

.work-list {
  display: grid;
  gap: 16px;
}

.work-list article {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--copper);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.014)),
    var(--panel);
  box-shadow: var(--immersive-shadow);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.work-list article:hover {
  transform: translateX(4px);
  border-color: rgba(208, 154, 106, 0.54);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    var(--panel-soft);
}

.work-list span {
  color: var(--copper);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.work-list strong {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.25;
}

.social-showcase {
  position: relative;
  background: var(--deep);
}

.social-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.social-card {
  display: grid;
  gap: 18px;
  min-height: 230px;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.6vw, 44px);
  background:
    radial-gradient(circle at 85% 14%, rgba(208, 154, 106, 0.13), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.016)),
    var(--panel);
  box-shadow: var(--immersive-shadow);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.social-card:hover {
  transform: translateY(-5px);
  border-color: rgba(208, 154, 106, 0.62);
  background:
    radial-gradient(circle at 85% 14%, rgba(208, 154, 106, 0.18), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    var(--panel-soft);
}

.social-card-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(234, 216, 184, 0.32);
  border-radius: 50%;
  color: var(--champagne);
  background: rgba(255, 255, 255, 0.035);
}

.social-card-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-card span:not(.social-card-icon) {
  color: var(--copper);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.social-card strong {
  max-width: 520px;
  color: var(--ink);
  font-size: clamp(1.2rem, 2.6vw, 1.9rem);
  line-height: 1.12;
}

.quote-band {
  padding: clamp(60px, 9vw, 110px) clamp(18px, 6vw, 90px);
  color: var(--white);
  background: #242326;
}

.quote-band blockquote {
  max-width: 1040px;
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 4.2rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
}

.faq {
  position: relative;
  background: var(--paper);
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 980px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.014)),
    var(--panel);
  box-shadow: var(--immersive-shadow);
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  padding: 22px 24px;
  color: var(--ink);
  font-size: clamp(1.04rem, 2vw, 1.22rem);
  font-weight: 850;
}

.faq-list p {
  margin: 0;
  padding: 0 24px 24px;
  color: var(--muted);
}

.contact {
  position: relative;
  background: var(--deep);
}

.contact-options a {
  color: var(--champagne);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(208, 154, 106, 0.12), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.016)),
    var(--panel);
  box-shadow: var(--shadow);
}

.contact-form .spam-check,
.contact-form .message-field,
.contact-form button,
.contact-form .form-status {
  grid-column: 1 / -1;
}

.spam-check {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

label {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(245, 240, 230, 0.16);
  border-radius: 12px;
  padding: 14px 15px;
  color: var(--ink);
  background: var(--panel-soft);
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
}

input::placeholder,
textarea::placeholder {
  color: rgba(246, 239, 229, 0.46);
}

textarea {
  resize: vertical;
  min-height: 132px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(212, 154, 98, 0.24);
  border-color: var(--copper);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--champagne);
  font-weight: 800;
}

.contact-form .button {
  width: min(100%, 280px);
  justify-self: center;
  margin-top: 4px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.75);
  border-top: 1px solid var(--line);
  background: #242326;
}

.site-footer p {
  margin: 0;
}

.footer-brand {
  color: var(--ink);
  font-weight: 950;
  text-transform: uppercase;
}

.copyright {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.9rem;
}

.admin-entry {
  margin-left: 6px;
  color: inherit;
  opacity: 0.16;
  text-decoration: none;
  transition: opacity 160ms ease, color 160ms ease;
}

.admin-entry:focus,
.admin-entry:hover {
  color: var(--champagne);
  opacity: 1;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-links a {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(234, 216, 184, 0.32);
  border-radius: 50%;
  color: var(--champagne);
  background: rgba(255, 255, 255, 0.035);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.social-links a:hover {
  transform: translateY(-1px);
  border-color: var(--copper);
  background: rgba(208, 154, 106, 0.12);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.projects-page,
.project-detail,
.service-page,
.admin-page {
  min-height: 100vh;
  background: var(--deep);
  color: var(--ink);
}

.projects-hero,
.service-hero {
  padding-top: 150px;
  background:
    linear-gradient(90deg, rgba(39, 37, 39, 0.94), rgba(39, 37, 39, 0.7)),
    url("assets/renovaverse-hero.png") center / cover;
}

.projects-hero h1,
.service-hero h1,
.project-detail h1,
.admin-page h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.94;
}

.projects-hero p,
.service-hero p,
.project-detail article > p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 90px);
  background: var(--paper);
}

.service-detail-list {
  display: grid;
  gap: 18px;
}

.service-detail-list p {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
  color: var(--muted);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.014)),
    var(--panel);
  box-shadow: var(--immersive-shadow);
}

.service-education {
  background: #302c2e;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.education-grid article {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.4vw, 42px);
  background:
    radial-gradient(circle at 18% 12%, rgba(234, 216, 184, 0.1), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    var(--panel);
  box-shadow: var(--immersive-shadow);
}

.education-grid article::before {
  content: "";
  width: 52px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--copper), var(--champagne));
}

.education-grid h3 {
  color: var(--ink);
  font-size: clamp(1.35rem, 2.4vw, 2.2rem);
}

.education-grid p {
  margin: 0;
  color: var(--muted);
}

.related-services {
  background: var(--deep);
}

.featured-work,
.service-work,
.projects-list {
  background: var(--paper);
}

.featured-work-grid,
.service-work-grid {
  margin-bottom: 28px;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.project-filter-shell {
  margin-bottom: 30px;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-filter-select {
  display: none;
  gap: 10px;
  align-items: end;
  max-width: 360px;
}

.project-filter-select label {
  display: grid;
  gap: 8px;
  flex: 1;
  color: var(--champagne);
  font-weight: 900;
}

.project-filter-select span {
  color: var(--copper);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-filter-select select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(234, 216, 184, 0.24);
  border-radius: 999px;
  padding: 0 46px 0 18px;
  color: var(--white);
  background:
    linear-gradient(45deg, transparent 50%, var(--champagne) 50%) calc(100% - 23px) 50% / 7px 7px no-repeat,
    linear-gradient(135deg, var(--champagne) 50%, transparent 50%) calc(100% - 18px) 50% / 7px 7px no-repeat,
    rgba(255, 255, 255, 0.07);
  font: inherit;
  font-weight: 900;
  appearance: none;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

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

.service-link-card {
  display: grid;
  gap: 14px;
  align-content: space-between;
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: inherit;
  text-decoration: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(234, 216, 184, 0.1), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    var(--panel);
  box-shadow: var(--immersive-shadow);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(208, 154, 106, 0.56);
}

.service-link-card span {
  color: var(--copper);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-link-card strong {
  color: var(--ink);
  line-height: 1.18;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  background: var(--paper);
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--immersive-shadow);
}

.project-card[hidden] {
  display: none;
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-card div {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.project-card span {
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-card h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.project-card p,
.empty-state,
.project-body {
  color: var(--muted);
}

.project-load-more {
  justify-content: center;
}

.project-return-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.project-return-actions-bottom {
  margin-top: 54px;
}

.portfolio-fallback-note {
  margin: 0 0 24px;
  border: 1px solid rgba(208, 154, 106, 0.28);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  color: var(--champagne);
  background: rgba(208, 154, 106, 0.1);
}

@media (max-width: 1180px) {
  .project-filters {
    display: none;
  }

  .project-filter-select {
    display: flex;
  }
}

.project-detail article {
  padding-top: 150px;
}

.project-detail .project-cover {
  width: 100%;
  max-height: 720px;
  margin: 36px 0;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--immersive-shadow);
}

.expandable-photo {
  cursor: zoom-in;
  transition: transform 180ms ease, filter 180ms ease;
}

.expandable-photo:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.project-body {
  max-width: 880px;
  font-size: 1.08rem;
}

.project-gallery {
  display: grid;
  gap: 24px;
  margin-top: 54px;
}

.project-gallery h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.project-gallery div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--immersive-shadow);
}

.photo-viewer {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: none;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  background: rgba(18, 16, 17, 0.88);
  backdrop-filter: blur(14px);
}

.photo-viewer.is-open {
  display: grid;
}

.photo-viewer img {
  max-width: min(1100px, 100%);
  max-height: 82vh;
  border-radius: var(--radius-lg);
  object-fit: contain;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.5);
}

.photo-viewer button {
  position: fixed;
  top: 22px;
  right: 22px;
  border: 1px solid rgba(234, 216, 184, 0.34);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--ink);
  background: rgba(64, 58, 60, 0.92);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.admin-page {
  display: grid;
  gap: 24px;
  min-height: 100vh;
  place-items: center;
  padding: 120px clamp(18px, 5vw, 72px) 72px;
}

.admin-panel {
  width: min(560px, 100%);
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 42px);
  background:
    radial-gradient(circle at 100% 0%, rgba(208, 154, 106, 0.12), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.016)),
    var(--panel);
  box-shadow: var(--immersive-shadow);
}

.admin-wide {
  width: min(1100px, 100%);
  justify-self: center;
}

.admin-shell {
  gap: 24px;
}

.admin-page:has(.admin-wide) {
  align-content: start;
  place-items: stretch center;
}

.admin-topbar,
.admin-project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.admin-timeout-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(236, 174, 83, 0.58);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--white);
  background: rgba(236, 174, 83, 0.14);
}

.admin-timeout-banner[hidden] {
  display: none;
}

.admin-timeout-banner strong {
  color: var(--champagne);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-timeout-banner span {
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-help {
  margin: 0;
  color: var(--muted);
}

.twofa-qr-wrap {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.twofa-qr {
  width: min(260px, 100%);
  height: auto;
  border: 12px solid #ffffff;
  border-radius: 10px;
  background: #ffffff;
}

.twofa-secret {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.twofa-secret span,
.twofa-uri summary {
  color: var(--copper);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.twofa-secret strong {
  color: var(--ink);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.twofa-uri {
  color: var(--muted);
}

.twofa-uri p {
  overflow-wrap: anywhere;
}

.backup-code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.backup-code-grid code {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
  font-size: 1rem;
  font-weight: 850;
  text-align: center;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.admin-nav a {
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
  text-transform: uppercase;
}

.admin-nav a:hover,
.admin-nav a.is-active {
  color: var(--ink);
  background: rgba(234, 216, 184, 0.12);
}

.admin-action-grid,
.analytics-stat-grid,
.analytics-grid {
  display: grid;
  gap: 16px;
}

.admin-action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-quick-actions {
  justify-content: flex-end;
}

.dashboard-attention {
  align-items: start;
}

.dashboard-attention-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-attention-grid a {
  display: grid;
  gap: 8px;
  min-height: 112px;
  align-content: end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  color: inherit;
  background: rgba(255, 255, 255, 0.035);
  text-decoration: none;
}

.dashboard-attention-grid a:hover {
  border-color: rgba(208, 154, 106, 0.56);
  background: rgba(234, 216, 184, 0.08);
}

.dashboard-attention-grid span {
  color: var(--copper);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dashboard-attention-grid strong {
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1.1;
}

.admin-action-card,
.analytics-stat,
.analytics-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.admin-action-card {
  display: grid;
  gap: 12px;
  min-height: 180px;
  align-content: end;
  padding: 22px;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.admin-action-card:hover {
  transform: translateY(-3px);
  border-color: rgba(208, 154, 106, 0.56);
  background: rgba(234, 216, 184, 0.08);
}

.admin-action-card span,
.analytics-stat span {
  color: var(--copper);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-action-card strong {
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.2;
}

.analytics-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.analytics-stat {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.analytics-stat strong {
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  line-height: 1;
}

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

.analytics-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.analytics-filter label {
  min-width: min(280px, 100%);
}

.analytics-periods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.analytics-periods a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.analytics-periods a:hover,
.analytics-periods a.is-active {
  color: var(--ink);
  border-color: rgba(208, 154, 106, 0.56);
  background: rgba(234, 216, 184, 0.12);
}

.analytics-chart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.analytics-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
}

.analytics-card-wide {
  grid-column: 1 / -1;
}

.analytics-card h2 {
  color: var(--ink);
  font-size: 1.15rem;
}

.analytics-bar-chart {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(52px, 1fr);
  align-items: end;
  gap: 10px;
  min-height: 290px;
  overflow-x: auto;
  padding: 18px 12px 0 18px;
  border-left: 1px solid rgba(234, 216, 184, 0.22);
  border-bottom: 1px solid rgba(234, 216, 184, 0.22);
  background:
    repeating-linear-gradient(
      to top,
      rgba(234, 216, 184, 0.08) 0,
      rgba(234, 216, 184, 0.08) 1px,
      transparent 1px,
      transparent 54px
    );
}

.analytics-bar-item {
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 8px;
  min-width: 52px;
  height: 260px;
  text-align: center;
}

.analytics-bar-track {
  display: flex;
  align-items: end;
  height: 185px;
  padding: 0 7px;
}

.analytics-bar-track span {
  display: block;
  width: 100%;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #5f95f2, #3d78db);
  box-shadow: 0 12px 30px rgba(208, 154, 106, 0.18);
}

.analytics-bar-item strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.analytics-bar-item small {
  color: var(--muted);
  font-size: 0.72rem;
}

.analytics-table-wrap {
  overflow-x: auto;
}

.analytics-card table {
  width: 100%;
  border-collapse: collapse;
  min-width: 360px;
}

.analytics-card th,
.analytics-card td {
  border-bottom: 1px solid rgba(234, 216, 184, 0.12);
  padding: 10px 8px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: left;
  vertical-align: top;
}

.analytics-card th {
  color: var(--champagne);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.analytics-card td a:not(.button),
.detail-item a:not(.button),
.admin-help a:not(.button) {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  color: var(--champagne);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: rgba(208, 154, 106, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color 160ms ease, text-decoration-color 160ms ease, transform 160ms ease;
}

.analytics-card td a:not(.button)::after,
.detail-item a:not(.button)::after,
.admin-help a:not(.button)::after {
  content: "→";
  color: var(--copper);
  font-weight: 900;
  line-height: 1;
}

.analytics-card td a:not(.button):hover,
.analytics-card td a:not(.button):focus-visible,
.detail-item a:not(.button):hover,
.detail-item a:not(.button):focus-visible,
.admin-help a:not(.button):hover,
.admin-help a:not(.button):focus-visible {
  color: var(--white);
  text-decoration-color: var(--copper);
  transform: translateX(2px);
}

.admin-project-list,
.admin-form {
  display: grid;
  gap: 16px;
}

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

.full-span {
  grid-column: 1 / -1;
}

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

.detail-item {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.detail-item span {
  color: var(--copper);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-item strong {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.status-badge {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(234, 216, 184, 0.18);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--ink);
  background: rgba(234, 216, 184, 0.1);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-draft,
.status-inactive,
.status-archived {
  border-color: rgba(184, 185, 190, 0.38);
  background: rgba(184, 185, 190, 0.11);
}

.status-completed,
.status-approved,
.status-paid,
.status-active {
  color: #eafff1;
  border-color: rgba(104, 197, 142, 0.62);
  background: rgba(104, 197, 142, 0.2);
  box-shadow: 0 0 0 1px rgba(104, 197, 142, 0.1), 0 0 18px rgba(104, 197, 142, 0.16);
}

.status-in-progress,
.status-sent {
  border-color: rgba(95, 149, 242, 0.45);
  background: rgba(95, 149, 242, 0.12);
}

.status-viewed {
  border-color: rgba(171, 127, 232, 0.46);
  background: rgba(171, 127, 232, 0.13);
}

.status-expiring-soon {
  border-color: rgba(236, 174, 83, 0.58);
  background: rgba(236, 174, 83, 0.16);
}

.status-expired {
  border-color: rgba(184, 185, 190, 0.42);
  background: rgba(184, 185, 190, 0.12);
}

.status-deposit-requested {
  border-color: rgba(231, 200, 90, 0.52);
  background: rgba(231, 200, 90, 0.14);
}

.status-waiting-on-material,
.status-partial-payment {
  border-color: rgba(224, 153, 74, 0.48);
  background: rgba(224, 153, 74, 0.13);
}

.status-overdue {
  border-color: rgba(225, 83, 83, 0.42);
  background: rgba(225, 83, 83, 0.13);
}

.status-canceled,
.status-declined,
.status-voided {
  border-color: rgba(234, 109, 151, 0.48);
  background: rgba(234, 109, 151, 0.13);
}

.document-line-grid {
  display: grid;
  gap: 12px;
}

.document-line-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.1fr) minmax(240px, 1.5fr) minmax(88px, 0.45fr) minmax(110px, 0.55fr) auto;
  gap: 12px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.document-line-description textarea {
  min-height: 68px;
}

.document-line-details {
  grid-column: 1 / -1;
  color: var(--muted);
}

.document-line-details summary {
  width: fit-content;
  color: var(--champagne);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.document-line-details > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.document-line-empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.mileage-route-builder {
  display: grid;
  gap: 14px;
}

.mileage-route-stops {
  display: grid;
  gap: 10px;
}

.mileage-route-stop {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.mileage-route-stop span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--champagne);
  font-size: 0.8rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.04);
}

.mileage-audit-page {
  min-height: 100vh;
  padding: 118px clamp(16px, 4vw, 56px) 56px;
  background: #6f7073;
}

.audit-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  width: min(980px, 100%);
  margin: 0 auto 16px;
}

.mileage-audit-sheet {
  display: grid;
  gap: 24px;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px);
  color: #191b20;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.mileage-audit-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  padding-bottom: 22px;
  border-bottom: 3px solid #7f7972;
}

.mileage-audit-header h1 {
  margin: 6px 0;
  color: #191b20;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.mileage-audit-header span,
.mileage-audit-detail span,
.mileage-audit-section h2 {
  color: #6b4b33;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.mileage-audit-header strong,
.mileage-audit-detail strong {
  display: block;
  margin-top: 6px;
  color: #191b20;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.mileage-audit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #d7d1c8;
}

.mileage-audit-grid-odometer {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mileage-audit-detail {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid #d7d1c8;
  border-bottom: 1px solid #d7d1c8;
}

.mileage-audit-detail:nth-child(4n) {
  border-right: 0;
}

.mileage-audit-section {
  display: grid;
  gap: 10px;
}

.mileage-audit-section h2 {
  margin: 0;
  padding-top: 14px;
  border-top: 2px solid #b8b0a6;
}

.mileage-audit-section p {
  margin: 0;
  color: #191b20;
  font-size: 1rem;
  line-height: 1.55;
}

.mileage-audit-route {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mileage-audit-route li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e3ddd5;
}

.mileage-audit-route span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
  background: #7f7972;
}

.mileage-audit-route strong {
  color: #191b20;
  font-size: 1rem;
}

.mileage-audit-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid #d7d1c8;
  color: #55514d;
  font-size: 0.85rem;
}

.mileage-audit-footer p {
  max-width: 620px;
  margin: 0;
}

.customer-document-page {
  min-height: 100vh;
  padding: 116px clamp(16px, 4vw, 64px) 64px;
  color: #2d2b2b;
  background: #6f7073;
}

.customer-document-sheet {
  position: relative;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.customer-document-actions {
  position: absolute;
  top: 22px;
  right: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.customer-document-actions .button {
  border-color: #b8aa97;
  color: #2d2b2b;
  background: #ffffff;
  box-shadow: none;
}

.customer-document-actions .button:hover {
  color: #ffffff;
  background: #77736e;
}

.customer-document-header {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 0.7fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 18px;
  padding: 34px 34px 30px;
  background: #eeeeee;
}

.customer-document-type {
  margin: 0 0 14px;
  color: #2b2b2b;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 350;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.customer-document-header h1 {
  margin: 0;
  color: #7a7774;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 850;
  letter-spacing: 0.02em;
}

.customer-document-brand {
  display: grid;
  gap: 3px;
  justify-items: end;
  color: #3a3837;
  font-size: 0.92rem;
  line-height: 1.45;
}

.customer-document-brand strong {
  color: #2d2b2b;
  font-size: 1.1rem;
}

.customer-document-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-bottom: 26px;
  border: 1px solid #d9d5cf;
  background: #d9d5cf;
}

.customer-document-meta > div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  background: #ffffff;
}

.customer-document-meta span,
.customer-document-parties h2,
.customer-document-lines h2,
.customer-document-notes h2,
.customer-document-totals span {
  color: #6f5541;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.customer-document-meta strong {
  color: #2d2b2b;
  font-size: 0.95rem;
}

.customer-document-sheet .status-badge {
  color: #2d2b2b;
}

.customer-document-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  margin-bottom: 30px;
}

.customer-document-parties > div {
  min-height: 120px;
  border-top: 2px solid #bdb7ae;
  padding-top: 10px;
}

.customer-document-parties h2,
.customer-document-lines h2,
.customer-document-notes h2 {
  margin: 0 0 10px;
}

.customer-document-parties p,
.customer-document-notes p {
  margin: 0 0 4px;
  color: #343130;
}

.customer-document-lines {
  margin-bottom: 16px;
}

.customer-document-lines table {
  width: 100%;
  border-collapse: collapse;
  color: #2d2b2b;
  font-size: 0.92rem;
}

.customer-document-lines th {
  padding: 8px 10px;
  color: #ffffff;
  background: #77736e;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.customer-document-lines th:nth-child(n + 2),
.customer-document-lines td:nth-child(n + 2) {
  text-align: right;
}

.customer-document-lines td {
  border-right: 1px solid #c7c0b7;
  padding: 8px 10px;
  background: #f7f6f4;
  vertical-align: top;
}

.customer-document-lines tr:nth-child(even) td {
  background: #eeeeec;
}

.customer-document-lines td:first-child {
  border-left: 1px solid #c7c0b7;
}

.customer-document-lines tbody tr:last-child td {
  border-bottom: 1px solid #c7c0b7;
}

.customer-document-lines td strong,
.customer-document-lines td span {
  display: block;
}

.customer-document-lines td span {
  color: #6d6863;
  font-size: 0.84rem;
}

.customer-document-bottom {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.55fr);
  gap: 34px;
  align-items: start;
  margin-top: 12px;
}

.customer-document-notes {
  min-height: 110px;
  padding-top: 10px;
}

.customer-document-totals {
  display: grid;
}

.customer-document-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #cfc8bf;
  padding: 7px 0;
}

.customer-document-totals strong {
  color: #2d2b2b;
}

.customer-document-totals .balance {
  margin-top: 8px;
  border: 0;
  padding: 10px 14px;
  color: #ffffff;
  background: #77736e;
}

.customer-document-totals .balance span,
.customer-document-totals .balance strong {
  color: #ffffff;
  font-size: 1.05rem;
}

.customer-payment-records {
  margin-top: 18px;
}

.customer-payment-records h2 {
  margin: 0 0 8px;
  color: #6f5541;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.customer-payment-records table {
  width: 100%;
  border-collapse: collapse;
  color: #2d2b2b;
  font-size: 0.84rem;
}

.customer-payment-records th {
  padding: 6px 0;
  color: #6f5541;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.customer-payment-records th:last-child,
.customer-payment-records td:last-child {
  text-align: right;
}

.customer-payment-records td {
  border-top: 1px solid #d7d0c7;
  padding: 7px 0;
}

.customer-document-sheet .analytics-card {
  margin-top: 24px;
  border-color: #ded8cf;
  color: #2d2b2b;
  background: #fbfaf8;
  box-shadow: none;
}

.customer-document-sheet .admin-help {
  color: #6d6863;
}

@media (max-width: 760px) {
  .customer-document-header,
  .customer-document-parties,
  .customer-document-bottom {
    grid-template-columns: 1fr;
  }

  .customer-document-meta {
    grid-template-columns: 1fr 1fr;
  }

  .customer-document-actions {
    position: static;
    margin-bottom: 16px;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .site-header,
  .audit-actions,
  .customer-document-actions,
  .customer-document-sheet .analytics-card form,
  script {
    display: none !important;
  }

  .customer-document-page {
    min-height: auto;
    padding: 0;
    background: #ffffff;
  }

  .customer-document-sheet {
    width: 100%;
    margin: 0;
    padding: 0.35in;
    box-shadow: none;
  }

  .mileage-audit-page {
    min-height: auto;
    padding: 0;
    background: #ffffff;
  }

  .mileage-audit-sheet {
    width: 100%;
    margin: 0;
    padding: 0.35in;
    box-shadow: none;
  }
}

.gallery-upload-group {
  display: grid;
  gap: 12px;
}

.cover-preview,
.existing-gallery {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.cover-preview img {
  width: min(420px, 100%);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  object-fit: cover;
}

.existing-gallery > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.existing-gallery article {
  display: grid;
  gap: 10px;
}

.existing-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  object-fit: cover;
}

.admin-project-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-project-row div {
  display: grid;
  gap: 4px;
}

.admin-project-row span {
  color: var(--muted);
  font-size: 0.92rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-label input {
  width: auto;
}

@media (max-width: 980px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .admin-action-grid,
  .analytics-stat-grid,
  .analytics-grid,
  .dashboard-attention-grid,
  .detail-grid,
  .form-grid,
  .document-line-row,
  .document-line-details > div,
  .mileage-audit-grid,
  .mileage-route-stop {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .education-grid {
    grid-template-columns: 1fr;
  }

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

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

  .intro,
  .work,
  .service-detail,
  .service-area-band,
  .contact {
    grid-template-columns: 1fr;
  }

  .intro-details p {
    margin-top: 0;
  }
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: block;
    flex-shrink: 0;
  }

  .site-nav {
    position: fixed;
    inset: 78px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 12px;
    border-radius: 14px;
  }

  .site-nav a:hover {
    background: var(--panel-soft);
  }

  .site-nav .nav-mobile-action {
    display: flex;
    justify-content: center;
    color: #201915;
    background: var(--copper);
    opacity: 1;
    font-weight: 950;
  }

  .site-nav .nav-mobile-action[href^="tel:"] {
    color: var(--champagne);
    border: 1px solid rgba(234, 216, 184, 0.35);
    background: rgba(255, 255, 255, 0.06);
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 68px;
  }

  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 68px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 12px;
    border-radius: 14px;
  }

  .site-nav .nav-mobile-action {
    display: flex;
    justify-content: center;
    color: #201915;
    background: var(--copper);
    opacity: 1;
    font-weight: 950;
  }

  .site-nav .nav-mobile-action[href^="tel:"] {
    color: var(--champagne);
    border: 1px solid rgba(234, 216, 184, 0.35);
    background: rgba(255, 255, 255, 0.06);
  }

  .site-nav a:hover {
    background: var(--panel-soft);
  }

  .hero {
    min-height: 88vh;
  }

  .hero-media {
    background-position: 58% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(33, 31, 32, 0.92), rgba(45, 41, 42, 0.64)),
      linear-gradient(0deg, rgba(39, 37, 39, 0.86), rgba(39, 37, 39, 0.1));
  }

  .hero-content {
    width: calc(100% - 36px);
    margin: 0 auto;
    padding-bottom: 44px;
  }

  h1 {
    font-size: clamp(3.4rem, 17vw, 5.2rem);
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-trust span {
    flex: 1 1 100%;
    justify-content: center;
  }

  .service-grid,
  .project-grid,
  .related-service-grid,
  .education-grid,
  .project-gallery div,
  .existing-gallery > div,
  .admin-action-grid,
  .analytics-stat-grid,
  .analytics-grid,
  .dashboard-attention-grid,
  .detail-grid,
  .form-grid,
  .document-line-row,
  .document-line-details > div,
  .mileage-audit-header,
  .mileage-audit-grid,
  .mileage-route-stop,
  .social-card-grid,
  .timeline,
  .intro-stats {
    grid-template-columns: 1fr;
  }

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

  .admin-topbar,
  .mileage-audit-footer,
  .admin-project-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-card {
    min-height: auto;
  }

  .site-footer {
    display: grid;
    justify-items: start;
  }
}

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