/* =====================================================================
   SJM Construction — design system
   Light green: mint-white surfaces, forest green, a leaf-green accent.
   Display: Cormorant Garamond · Text: Manrope (both self-hosted)
   ===================================================================== */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/cormorant-garamond-latin-var.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/manrope-latin-var.woff2") format("woff2"); }

:root {
  color-scheme: light;
  /* Light green palette: mint-white page, white cards, deep forest green, fresh leaf-green accent, sage tints */
  --ink: #1d3b2a;          /* forest green: headings, primary buttons */
  --ink-hover: #142b1e;
  --on-ink: #ffffff;       /* text on primary buttons */
  --ink-2: #34443a;        /* body text */
  --muted: #5f6f64;        /* secondary text */
  --stone-0: #ffffff;      /* cards, panels */
  --stone-50: #f4f8f2;     /* page (mint white) */
  --stone-100: #e8f1e6;    /* sage bands */
  --stone-200: #d6e3d4;    /* borders */
  --stone-300: #bdd0bb;    /* strong borders */
  --field: #ffffff;        /* form fields */
  --hover: #eef5ec;        /* row / item hover */
  --bronze: #2f7a4b;       /* accent (leaf green): rules, underlines, highlights */
  --bronze-dk: #256b3f;    /* links */
  --bronze-soft: #e3f0e3;  /* soft green fill */
  --bronze-line: #a9cbb0;  /* soft green border */

  /* Status */
  --green: #2f6b45; --green-bg: #e3f1e6; --green-line: #b9d6c1;
  --amber: #8a5a12; --amber-bg: #f6eedd;
  --red: #a3332a;   --red-bg: #f9e9e6;   --red-line: #e5c0ba;
  --blue: #2f5486;  --blue-bg: #e8eef6;  --blue-line: #c4d2e6;
  --indigo: #4a4a8a; --indigo-bg: #ecebf5;
  --teal: #2b6762;  --teal-bg: #e0f0ec;
  --gray: #55605a;  --gray-bg: #edf1ec;

  /* Aliases kept for templates */
  --text: var(--ink-2); --border: var(--stone-200); --border-2: var(--stone-300);
  --surface: var(--stone-0); --surface-2: #f7faf6; --bg: var(--stone-50);
  --tint: var(--hover); --accent: var(--bronze); --navy-3: var(--bronze-dk);

  /* Type */
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Shape & depth */
  --radius: 6px; --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(29, 59, 42, .05), 0 2px 8px rgba(29, 59, 42, .06);
  --shadow-lg: 0 30px 60px -34px rgba(29, 59, 42, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 15px/1.6 var(--sans); color: var(--ink-2); background: var(--stone-50); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--bronze-dk); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); line-height: 1.2; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; }
h1 { font-size: 2.3rem; line-height: 1.08; } h2 { font-size: 1.65rem; line-height: 1.15; }
h3 { font-size: 1.02rem; font-weight: 700; } h4 { font-size: .95rem; font-weight: 700; }
p { margin: 0 0 1em; }
::selection { background: var(--bronze-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); } .small { font-size: .86rem; } .nowrap { white-space: nowrap; }
.right { text-align: right; } .center { text-align: center; }
.mt { margin-top: 1rem; } .mb { margin-bottom: 1rem; } .mb0 { margin-bottom: 0; }
.hidden { display: none !important; }
.icon { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.icon-lg { width: 40px; height: 40px; }
.hp { position: absolute; left: -9999px; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--stone-300); background: var(--stone-0); color: var(--ink); font: 600 14px/1.2 var(--sans); letter-spacing: .01em;
  cursor: pointer; white-space: nowrap; text-decoration: none !important; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-primary, .btn-accent { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.btn-primary:hover, .btn-accent:hover { background: var(--ink-hover); border-color: var(--ink-hover); }
.btn-accent { position: relative; overflow: hidden; }
.btn-accent::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--bronze); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.btn-accent:hover::after { transform: scaleX(1); }
.btn-success { background: #2f7a4d; border-color: #2f7a4d; color: #fff; }
.btn-success:hover { background: #378c59; border-color: #378c59; }
.btn-danger { background: transparent; border-color: var(--red-line); color: var(--red); }
.btn-danger:hover { background: var(--red-bg); border-color: var(--red); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--stone-100); border-color: transparent; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-lg { padding: 15px 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: none; color: var(--bronze-dk); padding: 0; font: inherit; cursor: pointer; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.text-link { font-weight: 600; color: var(--ink); text-decoration: none !important; padding-bottom: 4px;
  background: linear-gradient(var(--bronze), var(--bronze)) 0 100% / 100% 1px no-repeat; transition: background-size .35s var(--ease), color .2s; }
.text-link:hover { color: var(--bronze-dk); background-size: 100% 2px; }

/* ---------------------------------------------------------------- forms */
label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; color: var(--ink); }
.field { margin-bottom: 16px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date],
input[type=search], input[type=url], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--stone-300); border-radius: var(--radius-sm); background: var(--field);
  font: 15px/1.4 var(--sans); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(47, 122, 75, .2); }
input:disabled { background: var(--stone-100); color: var(--muted); }
/* Dropdowns: same box as the text fields, with a custom green arrow instead of the browser's own. */
select:not([multiple]):not([size]) { -webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer; padding-right: 42px; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7a4b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px 16px; }
select::-ms-expand { display: none; }
select:hover:not(:disabled) { border-color: var(--bronze-line); background-color: var(--hover); }
select:focus { background-color: var(--field); }
select:disabled { background-color: var(--stone-100); color: var(--muted); cursor: not-allowed; }
select option { color: var(--ink); background: var(--stone-0); }
textarea { min-height: 100px; resize: vertical; }
input[type=file] { font: 14px var(--sans); }
.check { display: flex; gap: 9px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; accent-color: var(--ink); }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.inline-form { display: inline; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.form-row > .field { flex: 1 1 170px; margin-bottom: 0; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.form-section { border-top: 1px solid var(--stone-200); padding-top: 26px; margin-top: 26px; }
.form-section h3 { display: flex; gap: 12px; align-items: center; font-size: 1.05rem; }
.form-section h3 .n { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--ink); font: 500 15px var(--serif); display: inline-flex; align-items: center; justify-content: center; }

/* ---------------------------------------------------------------- cards, tables, lists */
.card { background: var(--stone-0); border: 1px solid var(--stone-200); border-radius: var(--radius); margin-bottom: 20px; box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--stone-200); flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; font-family: var(--sans); font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.card-body { padding: 20px; }
.card-body > :last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--stone-200); vertical-align: top; font-size: 14px; }
th { font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--surface-2); }
tbody tr { transition: background .15s; }
tbody tr:hover { background: var(--hover); }
tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tfoot td { font-weight: 700; background: var(--surface-2); }
.empty { padding: 32px; text-align: center; color: var(--muted); }
dl.kv { display: grid; grid-template-columns: minmax(130px, 40%) 1fr; gap: 10px 16px; margin: 0; }
dl.kv dt { color: var(--muted); font-size: 13.5px; }
dl.kv dd { margin: 0; font-weight: 500; color: var(--ink); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 13px 20px; border-bottom: 1px solid var(--stone-200); display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.list li:last-child { border-bottom: none; }
.history-item { font-size: 13.5px; }

/* Services grouped under a customer */
.svc-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.svc-mini li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.svc-mini li a { font-weight: 600; }
.req-group { border-top: 1px solid var(--stone-200); }
.req-group:first-of-type { border-top: 0; }
.req-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 20px; background: var(--surface-2); border-bottom: 1px solid var(--stone-200); }
tr.group-row td { background: var(--stone-100); border-top: 1px solid var(--stone-300); padding-top: 10px; padding-bottom: 10px; }
tr.group-row:hover td { background: var(--stone-100); }
tr.grouped td:first-child { padding-left: 34px; position: relative; }
tr.grouped td:first-child::before { content: ""; position: absolute; left: 18px; top: 0; bottom: 50%; width: 10px; border-left: 1px solid var(--stone-300); border-bottom: 1px solid var(--stone-300); }
.process-steps { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 7px; font-size: 14px; }
.process-steps li::marker { color: var(--muted); font-weight: 600; }
.process-steps li.is-added { color: var(--muted); }
details summary { cursor: pointer; font-weight: 600; color: var(--bronze-dk); }

/* ---------------------------------------------------------------- badges, notices, progress */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge-blue { background: var(--blue-bg); color: var(--blue); } .badge-indigo { background: var(--indigo-bg); color: var(--indigo); }
.badge-teal { background: var(--teal-bg); color: var(--teal); } .badge-green { background: var(--green-bg); color: var(--green); }
.badge-amber { background: var(--amber-bg); color: var(--amber); } .badge-red { background: var(--red-bg); color: var(--red); }
.badge-gray { background: var(--gray-bg); color: var(--gray); }
.flash { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: var(--radius-sm); margin: 0 0 14px; border: 1px solid; background: var(--stone-0); }
.flash-success { border-color: var(--green-line); color: var(--green); background: var(--green-bg); }
.flash-error { border-color: var(--red-line); color: var(--red); background: var(--red-bg); }
.flash-info { border-color: var(--blue-line); color: var(--blue); background: var(--blue-bg); }
.flash-close { background: none; border: none; font-size: 20px; line-height: 1; cursor: pointer; color: inherit; opacity: .6; }
.notice { padding: 14px 18px; border-radius: var(--radius-sm); border-left: 3px solid var(--blue); background: var(--blue-bg); margin-bottom: 18px; font-size: 14px; color: var(--ink-2); }
.notice-amber { border-color: var(--bronze); background: var(--bronze-soft); }
.notice-red { border-color: var(--red); background: var(--red-bg); }
.notice-green { border-color: var(--green); background: var(--green-bg); }
.progress, .bar { height: 6px; background: var(--stone-200); border-radius: 99px; overflow: hidden; }
.progress span, .bar span { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.bar span { width: var(--w); }
.progress-red span { background: var(--red); }

/* ---------------------------------------------------------------- app shell (portal & admin) */
.shell { display: flex; min-height: 100vh; background: var(--stone-50); }
.sidebar { width: 252px; flex: none; background: var(--stone-0); border-right: 1px solid var(--stone-200); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { padding: 20px 22px 18px; color: var(--ink); border-bottom: 1px solid var(--stone-200); }
.side-nav { flex: 1; padding: 10px 12px; }
.side-group { font-size: 12px; font-weight: 600; color: var(--muted); padding: 16px 10px 6px; }
.side-nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--radius-sm); color: var(--ink-2); font-size: 14px; font-weight: 500; margin-bottom: 1px; text-decoration: none; position: relative; transition: background .15s, color .15s; }
.side-nav a .icon { color: #8a847a; transition: color .15s; }
.side-nav a:hover { background: var(--stone-100); color: var(--ink); }
.side-nav a.active { background: var(--stone-100); color: var(--ink); font-weight: 700; }
.side-nav a.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; background: var(--bronze); border-radius: 0 2px 2px 0; }
.side-nav a.active .icon { color: var(--ink); }
.side-nav a span { flex: 1; }
.count { background: var(--stone-200); color: var(--ink-2); font-size: 11px; padding: 1px 8px; border-radius: 99px; font-weight: 700; }
.count-red { background: var(--red-bg); color: var(--red); }
.side-foot { padding: 16px; border-top: 1px solid var(--stone-200); }
.side-foot .muted { margin-bottom: 10px; }
.side-foot .btn-ghost { border-color: var(--stone-300); color: var(--ink-2); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 64px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--stone-200); display: flex; align-items: center; gap: 16px; padding: 0 28px; position: sticky; top: 0; z-index: 10; }
.topbar-title { flex: 1; font: 500 1.2rem var(--serif); color: var(--ink); }
.topbar-search { flex: 1; max-width: 480px; }
.topbar-search input { background: var(--stone-50); border-color: var(--stone-200); padding: 9px 13px; }
.topbar-bell { position: relative; color: var(--muted); margin-left: auto; display: flex; }
.topbar-bell .dot { position: absolute; top: -6px; right: -9px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; padding: 0 5px; border-radius: 99px; }
.topbar-user { color: var(--ink); font-weight: 600; font-size: 14px; }
.topbar-site { flex: none; white-space: nowrap; gap: 7px; }
.topbar-site .icon { width: 16px; height: 16px; }
.topbar-site .long { white-space: pre; }
.portal .topbar-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) { .topbar-site { min-height: 44px; } .topbar-site .long { display: none; } .topbar-site span { text-transform: capitalize; } }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--ink); padding: 4px; }
.content { padding: 32px 28px 48px; max-width: 1440px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { margin-bottom: 4px; font-size: 2.2rem; }
.page-head p { margin: 0; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.breadcrumb a { color: var(--muted); } .breadcrumb a:hover { color: var(--ink); }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.brand-name { font: 600 1.3rem/1.05 var(--serif); letter-spacing: .01em; white-space: nowrap; }
.brand-tag { font: 500 11.5px/1.2 var(--sans); color: var(--muted); letter-spacing: .02em; white-space: nowrap; }
@media (max-width: 420px) { .site-header .brand-tag { display: none; } .site-header .brand-name { font-size: 1.15rem; } }
.brand-logo { display: block; height: 40px; width: auto; max-width: 190px; object-fit: contain; }
.logo-slot { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 38px; flex: none; border: 1.5px dashed currentColor; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: .1em; opacity: .5; }

/* stats, tabs, pipeline, chips */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { background: var(--stone-0); border: 1px solid var(--stone-200); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); display: block; color: inherit; text-decoration: none !important; transition: border-color .2s, box-shadow .2s; }
a.stat:hover { border-color: var(--stone-300); box-shadow: 0 10px 24px -16px rgba(29, 59, 42, .35); }
.stat-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat-value { font: 500 2rem/1.15 var(--serif); color: var(--ink); margin: 6px 0 4px; font-variant-numeric: lining-nums tabular-nums; }
.stat-sub { font-size: 13px; color: var(--muted); }
.stat .progress { margin-top: 8px; }
.stat-red .stat-value { color: var(--red); } .stat-green .stat-value { color: var(--green); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--stone-200); margin-bottom: 22px; overflow-x: auto; }
.tabs a { padding: 11px 14px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; transition: color .15s, border-color .15s; }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--ink); border-color: var(--bronze); }
.tabs .count { margin-left: 4px; }
.pipeline { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.pipe { flex: 1 0 116px; background: var(--surface-2); border: 1px solid var(--stone-200); border-radius: var(--radius-sm); padding: 12px; text-align: center; color: inherit; text-decoration: none !important; transition: border-color .2s; }
.pipe:hover { border-color: var(--stone-300); }
.pipe b { display: block; font: 500 1.6rem/1.1 var(--serif); color: var(--ink); }
.pipe span { font-size: 12px; color: var(--muted); }
.pipe.red b { color: var(--red); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { padding: 6px 14px; border-radius: 99px; border: 1px solid var(--stone-300); background: var(--stone-0); font-size: 13px; font-weight: 500; color: var(--ink-2); text-decoration: none !important; transition: border-color .2s, background .2s; }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.pager { display: flex; gap: 8px; justify-content: center; padding: 16px; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 20px 32px; }
.timeline li::before { content: ""; position: absolute; left: 8px; top: 22px; bottom: -2px; width: 1px; background: var(--stone-300); }
.timeline li:last-child::before { display: none; }
.timeline .dot { position: absolute; left: 0; top: 3px; width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--stone-300); background: var(--stone-0); display: flex; align-items: center; justify-content: center; }
.timeline .done .dot { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.timeline .late .dot { border-color: var(--red); background: var(--red-bg); }
.timeline .next .dot { border-color: var(--bronze); background: var(--bronze-soft); }
.timeline .dot .icon { width: 10px; height: 10px; }
.timeline-title { font-weight: 600; color: var(--ink); }
.timeline-meta { font-size: 13px; color: var(--muted); }

/* gantt */
.gantt { min-width: 780px; }
.gantt-row { display: grid; grid-template-columns: 250px 1fr; border-bottom: 1px solid var(--stone-200); align-items: center; }
.gantt-row:last-child { border-bottom: none; }
.gantt-label { padding: 11px 16px; font-size: 13.5px; }
.gantt-track { position: relative; height: 46px; border-left: 1px solid var(--stone-200); }
.gantt-head .gantt-track { height: 32px; }
.gantt-month { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--stone-200); font-size: 12px; color: var(--muted); padding: 7px 6px; }
.gantt-bar { position: absolute; top: 14px; height: 18px; border-radius: 3px; background: var(--ink); min-width: 4px; overflow: hidden; }
.gantt-bar.red { background: var(--red); } .gantt-bar.planned { background: var(--stone-300); }
.gantt-bar span { display: block; height: 100%; background: rgba(255, 255, 255, .28); }
.gantt-ms { position: absolute; top: 17px; width: 11px; height: 11px; transform: translateX(-5px) rotate(45deg); background: var(--bronze); border: 2px solid var(--stone-0); box-shadow: 0 0 0 1px var(--bronze); }
.gantt-ms.done { background: var(--green); box-shadow: 0 0 0 1px var(--green); }
.gantt-ms.late { background: var(--red); box-shadow: 0 0 0 1px var(--red); }
.gantt-today { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--red); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 10px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; background: none; border-radius: 0; overflow: visible; }
.bars .bar span { width: 100%; max-width: 38px; background: var(--ink); border-radius: 3px 3px 0 0; min-height: 2px; }
.bars .bar small { font-size: 11px; color: var(--muted); margin-top: 6px; }

/* reports, items, totals, decision, modal */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photo-grid a { display: block; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; background: var(--stone-100); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.photo-grid a:hover img { transform: scale(1.05); }
.report { border-bottom: 1px solid var(--stone-200); padding: 22px 20px; }
.report:last-child { border-bottom: none; }
.report h3 { font: 500 1.35rem var(--serif); }
.report-meta { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.items-table input { padding: 8px 10px; }
.items-table td { padding: 6px 8px; vertical-align: middle; }
.items-table .col-qty { width: 90px; } .items-table .col-price { width: 140px; } .items-table .col-amt { width: 130px; } .items-table .col-x { width: 44px; }
.totals { margin-left: auto; max-width: 340px; }
.totals div { display: flex; justify-content: space-between; padding: 6px 0; font-variant-numeric: tabular-nums; }
.totals .grand { border-top: 1px solid var(--ink); font-weight: 700; font-size: 1.1rem; margin-top: 6px; padding-top: 10px; color: var(--ink); }
.decision { border: 1px solid var(--bronze); border-top-width: 3px; background: var(--bronze-soft); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.decision h3 { font: 500 1.4rem var(--serif); color: var(--ink); }
.modal-backdrop { position: fixed; inset: 0; background: rgba(20, 40, 28, .45); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 16px; animation: fade-in .2s ease-out; }
.modal { background: var(--stone-0); border: 1px solid var(--stone-200); border-radius: var(--radius); max-width: 540px; width: 100%; max-height: 90vh; overflow: auto; box-shadow: 0 30px 70px -20px rgba(20, 40, 28, .35); animation: modal-in .25s var(--ease); }
.modal h3 { font: 500 1.45rem var(--serif); }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* =====================================================================
   Public website
   ===================================================================== */
.public { background: var(--stone-50); }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 45; width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--ink); color: var(--on-ink); box-shadow: 0 6px 18px rgba(20, 40, 28, .25); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility 0s linear .25s, background .2s; }
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s, background .2s; }
.to-top:hover { background: var(--ink-hover); }
.to-top:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
.to-top svg { width: 20px; height: 20px; }
@media (max-width: 640px) { .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .to-top, .to-top.is-shown { transition: none; transform: none; } }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 8px 14px; border-radius: 4px; }
.skip-link:focus { left: 16px; }
#main:focus { outline: none; }
.paper { background: var(--stone-100); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(244, 248, 242, .88); -webkit-backdrop-filter: saturate(1.2) blur(12px); backdrop-filter: saturate(1.2) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.site-header.is-scrolled { border-color: var(--stone-200); background: rgba(255, 255, 255, .95); }
.site-header-inner { display: flex; align-items: center; gap: 36px; height: 80px; }
.site-header .brand { margin-right: auto; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a { color: var(--ink-2); font-weight: 500; font-size: 14.5px; text-decoration: none !important; padding: 6px 0;
  background: linear-gradient(var(--bronze), var(--bronze)) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease), color .2s; }
.site-nav a:hover { color: var(--ink); background-size: 100% 1px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn { transition: opacity .35s, transform .35s, background .2s; }
.cta-hidden .header-actions .btn { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--stone-300); border-radius: 4px; background: var(--stone-0); cursor: pointer; padding: 13px 11px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.flash-stack { position: fixed; top: 92px; right: 20px; z-index: 50; width: min(420px, calc(100% - 40px)); }
.flash-stack .flash { box-shadow: 0 16px 34px -18px rgba(29, 59, 42, .4); animation: toast-in .45s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

/* Display type */
.headline { font-family: var(--serif); font-weight: 500; color: var(--ink); letter-spacing: -.015em; line-height: 1.02; }
.headline .line { display: block; overflow: hidden; padding-bottom: .08em; }
.headline .line > span { display: inline-block; }
.lede { font-size: 1.12rem; line-height: 1.7; color: var(--ink-2); max-width: 36em; }
.section { padding: 88px 0; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(2.2rem, 4vw, 3.3rem); line-height: 1.04; margin-bottom: 16px; }
.section-head p { font-size: 1.08rem; color: var(--ink-2); line-height: 1.7; margin: 0; }
.rule { display: block; width: 56px; height: 1px; background: var(--bronze); margin-bottom: 26px; }

/* Hero: full-bleed photograph with an overlapping panel */
.hero3 { position: relative; }
.hero3-media { position: relative; width: 100%; height: calc(100vh - 80px); min-height: 560px; max-height: 920px; overflow: hidden; background: var(--stone-200); }
@keyframes settle { from { transform: scale(1.16); } }
.hero3-media::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(14, 28, 20, .38) 0%, rgba(14, 28, 20, .14) 45%, rgba(14, 28, 20, 0) 70%), linear-gradient(180deg, rgba(14, 28, 20, 0) 60%, rgba(14, 28, 20, .25) 100%); }

/* Hero slideshow: crossfading photos, each with a slow zoom */
.hero3-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); transform-origin: 50% 50%; }
.hero-slide:nth-child(even) img { transform-origin: 30% 60%; }
.hero-slide:nth-child(3n) img { transform-origin: 70% 40%; }
.hero-slide img { animation: none; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.04); } }

.hero3-controls { position: absolute; right: 28px; top: 26px; z-index: 3; display: flex; align-items: center; gap: 14px;
  padding: 8px 10px 8px 16px; border-radius: 999px; background: rgba(20, 40, 28, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; }
.hero3-caption { font-size: 13px; font-weight: 600; letter-spacing: .01em; min-width: 7.5em; }
.hero3-dots { display: flex; align-items: center; gap: 6px; }
.hero-dot { position: relative; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .45); cursor: pointer; overflow: hidden;
  transition: width .45s var(--ease), background .3s; }
.hero-dot:hover { background: rgba(255, 255, 255, .8); }
.hero-dot.is-active { width: 34px; background: rgba(255, 255, 255, .35); }
.hero-dot span { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-dot.is-active span { transform: scaleX(1); }
.js [data-slideshow].is-playing .hero-dot.is-active span { transform: scaleX(0); animation: dot-fill var(--slide-ms, 6000ms) linear forwards; }
[data-slideshow].is-paused .hero-dot.is-active span { animation-play-state: paused; }
@keyframes dot-fill { to { transform: scaleX(1); } }
.hero-dot:focus-visible, .hero-pause:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hero-pause { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: transparent; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .2s; }
.hero-pause:hover { background: rgba(255, 255, 255, .15); }
.hero-pause svg { width: 14px; height: 14px; }
.hero-pause .i-play, [data-slideshow].is-paused .hero-pause .i-pause { display: none; }
[data-slideshow].is-paused .hero-pause .i-play { display: block; }
.hero3 > .container { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; pointer-events: none; }
.hero3-panel { pointer-events: auto; max-width: 620px; padding: 40px 44px 38px; border-radius: 16px;
  background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .55); box-shadow: 0 30px 60px -30px rgba(14, 28, 20, .45); }

.hero3 h1 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); line-height: 1.08; margin-bottom: 22px; }
.hero3 .lede { margin-bottom: 28px; color: var(--ink-2); }
.hero3-actions { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }

/* Intro statement */
.intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; align-items: start; }
.intro-statement { font: 400 clamp(1.7rem, 2.8vw, 2.35rem)/1.32 var(--serif); color: var(--ink); margin: 0; }
.pillars { list-style: none; margin: 0; padding: 0; }
.pillars li { padding: 20px 0; border-top: 1px solid var(--stone-300); }
.pillars li:last-child { border-bottom: 1px solid var(--stone-300); }
.pillars strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.pillars span { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* Services: editorial image grid */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 32px; }
.tile { color: inherit; text-decoration: none !important; display: block; }
.tile.wide { grid-column: span 2; }
.tile-img { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--stone-200); }
.tile.wide { display: flex; flex-direction: column; }
.tile.wide .tile-img { flex: 1; min-height: 320px; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease); }
.tile:hover .tile-img img { transform: scale(1.08); }
.tile-body { display: block; padding-top: 20px; }
.tile-name { display: inline; font: 500 1.75rem/1.25 var(--serif); color: var(--ink); background: linear-gradient(var(--bronze), var(--bronze)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); padding-bottom: 2px; }
.tile:hover .tile-name, .tile:focus-visible .tile-name { background-size: 100% 1px; }
.tile-sum { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 46ch; }
.tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 24px; }
.tiles-4 .tile-name { font-size: 1.4rem; }
.tiles-4 .tile-sum { font-size: 14px; }

/* Service cards: boxed, rounded, image on top */
.svc-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.svc-card-wrap { flex: 0 1 calc((100% - 56px) / 3); display: flex; }
.svc-cards-4 .svc-card-wrap { flex-basis: calc((100% - 84px) / 4); }
.svc-cards-compact .svc-card-wrap { flex-basis: calc((100% - 28px) / 2); }
.svc-card { position: relative; display: flex; flex-direction: column; width: 100%; color: inherit; text-decoration: none !important;
  background: var(--stone-0); border: 1px solid var(--stone-200); border-radius: 12px; overflow: hidden; isolation: isolate;
  box-shadow: var(--shadow); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s; }
/* Soft light that follows the pointer */
.svc-card::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), rgba(63, 138, 90, .12), transparent 45%); }
/* Bronze line that sweeps across the bottom */
.svc-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 3; background: var(--bronze);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.svc-card-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone-200); }
.svc-card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29, 59, 42, 0) 60%, rgba(29, 59, 42, .22) 100%); transition: opacity .5s; }
.svc-card-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); filter: saturate(.96) brightness(.99); transition: transform 1.1s var(--ease), filter .6s; }
.svc-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.svc-card-name { font: 500 1.6rem/1.2 var(--serif); color: var(--ink); }
.svc-card-sum { margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.6; flex: 1; }
.svc-card-more { margin-top: 18px; align-self: flex-start; font-size: 13.5px; font-weight: 700; color: var(--bronze-dk); padding-bottom: 3px;
  background: linear-gradient(var(--bronze), var(--bronze)) 0 100% / 0 1px no-repeat;
  opacity: .0; transform: translateY(6px); transition: opacity .4s, transform .4s var(--ease), background-size .5s var(--ease) .1s; }
.svc-card:hover, .svc-card:focus-visible { transform: translateY(-8px); border-color: var(--bronze-line); box-shadow: 0 30px 56px -30px rgba(29, 59, 42, .45), 0 0 0 1px rgba(47, 122, 75, .12); }
.svc-card:hover::before, .svc-card:focus-visible::before { opacity: 1; }
.svc-card:hover::after, .svc-card:focus-visible::after { transform: scaleX(1); }
.svc-card:hover .svc-card-img img, .svc-card:focus-visible .svc-card-img img { transform: scale(1.09); filter: saturate(1.05) brightness(1.02); }
.svc-card:hover .svc-card-img::after { opacity: .4; }
.svc-card:hover .svc-card-more, .svc-card:focus-visible .svc-card-more { opacity: 1; transform: none; background-size: 100% 1px; }
@media (hover: none) { .svc-card-more { opacity: 1; transform: none; } }
.svc-cards-compact .svc-card-name { font-size: 1.4rem; }

/* Scroll entrance: left column slides from the left, right column from the right, centre fades and grows */
.js [data-slide] { opacity: 0; transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-slide].from-left { transform: translateX(-70px); }
.js [data-slide].from-right { transform: translateX(70px); }
.js [data-slide].from-center { transform: translateY(30px) scale(.94); }
.js [data-slide].is-in { opacity: 1; transform: none; }

/* Process */
.process3 { background: var(--stone-100); }
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; position: relative; --fill: 1; }
.js .steps3 { --fill: 0; }
.steps3::before, .steps3::after { content: ""; position: absolute; top: 30px; left: 0; right: 0; height: 1px; }
.steps3::before { background: var(--stone-300); }
.steps3::after { background: var(--ink); transform-origin: left; transform: scaleX(var(--fill)); }
.step3 { position: relative; padding-top: 64px; }
.step3-num { position: absolute; top: 0; left: 0; width: 60px; height: 60px; border-radius: 50%; background: var(--stone-100); border: 1px solid var(--stone-300); display: flex; align-items: center; justify-content: center;
  font: 500 1.6rem var(--serif); color: var(--muted); transition: background .5s, color .5s, border-color .5s; z-index: 1; }
.step3.is-done .step3-num, html:not(.js) .step3-num { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.step3 h3 { font: 500 1.5rem/1.2 var(--serif); margin: 26px 0 10px; }
.step3 p { color: var(--ink-2); font-size: 15px; line-height: 1.7; margin: 0; }

/* Portal feature: photo with overlapping portal card */
.feature { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.feature-media { position: relative; padding: 0 0 72px 0; }
.feature-photo { aspect-ratio: 4 / 5; overflow: hidden; width: 78%; background: var(--stone-200); }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; transform: translateY(var(--py, 0px)) scale(1.12); }
.mock3 { position: absolute; right: 0; bottom: 0; width: 72%; background: var(--stone-0); border: 1px solid var(--stone-300); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--stone-200); }
.mock-bar strong { color: var(--ink); font-size: 14px; }
.mock-body { padding: 18px; display: grid; gap: 12px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mock-stat { border: 1px solid var(--stone-200); border-radius: var(--radius-sm); padding: 10px 12px; }
.mock-stat > span { display: block; font-size: 12px; color: var(--muted); }
.mock-stat b { display: block; font: 500 1.4rem/1.2 var(--serif); color: var(--ink); margin-bottom: 6px; }
.mock-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 11px 13px; border: 1px solid var(--stone-200); border-radius: var(--radius-sm); font-size: 13.5px; }
.mock-row.pending { border-color: var(--bronze-line); background: var(--bronze-soft); }
.js .mock3 .mock-row { opacity: 0; transform: translateY(8px); transition: opacity .6s, transform .6s var(--ease); }
.js .mock3.is-in .mock-row { opacity: 1; transform: none; }
.js .mock3.is-in .mock-row:nth-child(3) { transition-delay: .15s; } .js .mock3.is-in .mock-row:nth-child(4) { transition-delay: .3s; }
.js .bar span { width: 0; transition: width 1.6s var(--ease) .3s; }
.js .is-in .bar span, .js .bar.is-in span { width: var(--w); }
.feature-copy h2 { font-size: clamp(2.2rem, 4vw, 3.3rem); line-height: 1.04; }
.feature-copy > p { font-size: 1.08rem; line-height: 1.7; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; }
.checks li { position: relative; padding: 12px 0 12px 30px; border-top: 1px solid var(--stone-200); color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 3px; top: 19px; width: 12px; height: 6px; border-left: 1.5px solid var(--bronze); border-bottom: 1.5px solid var(--bronze); transform: rotate(-45deg); }
.promise { margin-top: 28px; padding: 22px 24px; background: var(--stone-0); border: 1px solid var(--stone-200); border-left: 3px solid var(--bronze); }
.promise strong { display: block; font: 500 1.35rem var(--serif); color: var(--ink); margin-bottom: 6px; }
.promise p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Customer portal section: interactive preview + features + approval band */
.portal4 { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.pmock { background: var(--stone-0); border: 1px solid var(--stone-300); border-radius: 14px; overflow: hidden; box-shadow: 0 40px 70px -40px rgba(29, 59, 42, .5); }
.pmock-chrome { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--stone-100); border-bottom: 1px solid var(--stone-200); }
.pmock-chrome span { width: 10px; height: 10px; border-radius: 50%; background: var(--stone-300); }
.pmock-chrome span:nth-child(1) { background: #e8a29b; } .pmock-chrome span:nth-child(2) { background: #e9cf8f; } .pmock-chrome span:nth-child(3) { background: #9fcfa9; }
.pmock-chrome em { margin-left: 10px; font-style: normal; font-size: 12px; color: var(--muted); background: var(--stone-0); padding: 3px 12px; border-radius: 99px; flex: 1; max-width: 260px; }
.pmock-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px 6px; }
.pmock-head strong { display: block; font: 500 1.35rem/1.2 var(--serif); color: var(--ink); }
.pmock-head span:not(.badge) { font-size: 13px; color: var(--muted); }
.pmock-tabs { display: flex; gap: 4px; padding: 0 16px; border-bottom: 1px solid var(--stone-200); }
.pmock-tabs button { padding: 10px 12px; border: 0; border-bottom: 2px solid transparent; background: none; font: 600 13.5px var(--sans); color: var(--muted); cursor: pointer; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.pmock-tabs button:hover { color: var(--ink); }
.pmock-tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--bronze); }
.pmock-panel { padding: 18px 20px 20px; display: grid; gap: 12px; min-height: 270px; align-content: start; }
.pmock-panel[hidden] { display: none; }
.pmock-panel.is-active { animation: fade-up .45s var(--ease); }
.pmock .mock-stat small { display: block; font-size: 12px; color: var(--muted); }
.pmock-steps { list-style: none; margin: 0; padding: 0; }
.pmock-steps li { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 0 0 14px 30px; font-size: 14px; color: var(--ink-2); }
.pmock-steps li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--stone-300); background: var(--stone-0); }
.pmock-steps li:not(:last-child)::after { content: ""; position: absolute; left: 7.5px; top: 20px; bottom: 0; width: 1px; background: var(--stone-300); }
.pmock-steps li.done::before { background: var(--ink); border-color: var(--ink); }
.pmock-steps li.next::before { border-color: var(--bronze); background: var(--bronze-soft); box-shadow: 0 0 0 4px rgba(47, 122, 75, .12); }
.pmock-steps li.next span { font-weight: 700; color: var(--ink); }
.pmock-steps em { font-style: normal; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.pmock-amt { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.pmock-total { display: flex; justify-content: space-between; padding: 10px 2px 0; border-top: 1px solid var(--stone-200); font-size: 14px; color: var(--muted); }
.pmock-total strong { color: var(--ink); font-size: 1.05rem; }
.js .pmock .mock-row { opacity: 0; transform: translateY(8px); transition: opacity .6s, transform .6s var(--ease); }
.js .pmock.is-in .mock-row { opacity: 1; transform: none; }
.js .pmock.is-in .mock-row:nth-child(3) { transition-delay: .15s; }

.feat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feat { padding: 22px 20px; background: var(--stone-0); border: 1px solid var(--stone-200); border-radius: 12px; cursor: pointer;
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s; }
.feat:hover, .feat.is-active { border-color: var(--bronze-line); transform: translateY(-3px); box-shadow: 0 18px 34px -24px rgba(29, 59, 42, .45); }
.feat-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--bronze-soft); color: var(--bronze); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; transition: background .3s, color .3s; }
.feat:hover .feat-icon, .feat.is-active .feat-icon { background: var(--bronze); color: #fff; }
.feat-icon .icon { width: 20px; height: 20px; }
.feat strong { display: block; font: 500 1.3rem/1.2 var(--serif); color: var(--ink); margin-bottom: 6px; }
.feat > span:last-child { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

.promise-band { display: flex; gap: 18px; align-items: flex-start; margin-top: 36px; padding: 22px 26px; background: var(--bronze-soft); border: 1px solid var(--bronze-line); border-radius: 14px; }
.promise-icon { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--bronze); color: #fff; display: flex; align-items: center; justify-content: center; }
.promise-icon .icon { width: 22px; height: 22px; }
.promise-band strong { display: block; font: 500 1.45rem/1.2 var(--serif); color: var(--ink); margin-bottom: 4px; }
.promise-band p { margin: 0; color: var(--ink-2); max-width: 70ch; }
@media (max-width: 1000px) { .portal4 { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; } .pmock .mock-stats { grid-template-columns: 1fr 1fr; } .promise-band { padding: 18px; } }

/* Photos from every stage: continuous left-to-right strip */
.marquee { overflow: hidden; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; width: max-content; }
.marquee-set { display: flex; gap: 8px; padding-right: 8px; }
/* Moves continuously, including while the mouse is over it; pauses only while a photo has keyboard focus. */
.js .marquee-track { animation: marquee-ltr 60s linear infinite; }
.marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee-ltr { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.shot { position: relative; flex: none; width: clamp(200px, 21vw, 280px); aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in; background: var(--stone-200); display: block; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29, 59, 42, 0) 50%, rgba(20, 40, 28, .72) 100%); }
.shot-cap { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; text-align: left; color: #fff; }
.shot-cap b { display: block; font: 500 1.25rem/1.15 var(--serif); }
.shot-cap span { display: block; font-size: 13px; opacity: .88; margin-top: 2px; }
.shot-zoom { position: absolute; top: 12px; right: 12px; z-index: 1; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink);
  display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s var(--ease); }
.shot-zoom svg { width: 18px; height: 18px; }
.shot:hover img, .shot:focus-visible img { transform: scale(1.06); }
.shot:hover .shot-zoom, .shot:focus-visible .shot-zoom { opacity: 1; transform: none; }
.shot:focus-visible { outline: 3px solid var(--bronze); outline-offset: -3px; }

/* Image preview (lightbox) */
.lightbox { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 56px 72px; background: rgba(14, 28, 20, .9); animation: fade-in .25s ease-out; }
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 170px); object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); animation: lb-in .35s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(.96); } }
.lb-figure figcaption { margin-top: 16px; color: #e6efe7; text-align: center; }
.lb-figure figcaption b { display: block; font: 500 1.6rem var(--serif); color: #fff; }
.lb-figure figcaption span { font-size: 14px; opacity: .85; }
.lb-count { display: block; margin-top: 6px; font-size: 12.5px; opacity: .7; }
.lb-btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s; }
.lb-btn:hover { background: rgba(255, 255, 255, .2); border-color: #fff; }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }
.film-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); }

/* Closing */
.closing3 { position: relative; overflow: hidden; padding: 104px 0; }
.closing3-bg { position: absolute; inset: -90px 0; background: var(--stone-200) center / cover no-repeat; transform: translateY(var(--py, 0px)); will-change: transform; }
.closing3::after { content: ""; position: absolute; inset: 0; background: rgba(29, 59, 42, .22); }
.closing3 .container { position: relative; z-index: 1; display: flex; justify-content: center; }
.closing3-card { background: var(--stone-50); max-width: 620px; padding: 60px 64px; text-align: center; box-shadow: var(--shadow-lg); }
.closing3-card h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 14px; }
.closing3-card p { font-size: 1.06rem; line-height: 1.7; margin: 0 auto 32px; max-width: 30em; }

/* Footer */
.site-footer { background: var(--stone-100); border-top: 1px solid var(--stone-200); padding: 56px 0 24px; color: var(--ink-2); }
.site-footer .brand { margin-bottom: 16px; }
.site-footer strong { display: block; color: var(--ink); margin-bottom: 14px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand p { max-width: 30em; line-height: 1.7; color: var(--muted); }
/* Footer logo and description in a soft see-through panel. */
/* Glass panel: frosted, see-through white with a bright edge, over soft green light in the footer. */
.site-footer { background: radial-gradient(circle at 8% 22%, rgba(47, 122, 75, .18), transparent 26%), radial-gradient(circle at 26% 92%, rgba(127, 178, 140, .27), transparent 28%), var(--stone-100); }
.footer-brand { position: relative; align-self: start; padding: 24px 26px 22px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, .22) 100%);
  border: 1px solid rgba(255, 255, 255, .85); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(255, 255, 255, .3), 0 18px 40px -22px rgba(29, 59, 42, .45);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.footer-brand p { margin-bottom: 0; }
/* Every footer column sits in the same glass box as the logo panel, all equal height. */
.footer-grid { gap: 20px; align-items: stretch; }
.footer-grid > div { position: relative; align-self: stretch; padding: 24px 24px 22px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, .22) 100%);
  border: 1px solid rgba(255, 255, 255, .85); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(255, 255, 255, .3), 0 18px 40px -22px rgba(29, 59, 42, .45);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.footer-grid > div > strong { display: block; margin-bottom: 14px; }
@media (max-width: 640px) { .footer-grid > div { padding: 20px 18px 18px; } .footer-grid { gap: 14px; } }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.footer-links a { color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); }
.contact-list li { display: flex; align-items: flex-start; gap: 10px; }
.contact-list .icon { color: var(--bronze); margin-top: 2px; }
.contact-email { overflow-wrap: break-word; }

/* Portfolio ("Our work") */
.work-filter { margin-bottom: 28px; }
.work-card .svc-card-img { aspect-ratio: 4 / 3; }
/* Project card slideshow: photos stacked, crossfading */
[data-card-show] img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease, transform 1.1s var(--ease), filter .6s; }
[data-card-show] img.is-on { opacity: 1; }
.card-dots { position: absolute; left: 12px; bottom: 14px; z-index: 1; display: flex; gap: 5px; }
.card-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); transition: background .4s, width .4s var(--ease); }
.card-dots i.is-on { width: 16px; border-radius: 3px; background: #fff; }
.work-count { position: absolute; right: 12px; bottom: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px;
  background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 12.5px; font-weight: 700; }
.work-count .icon { width: 14px; height: 14px; }
.work-tag { display: inline-block; align-self: flex-start; margin-bottom: 8px; padding: 3px 10px; border-radius: 99px; background: var(--bronze-soft); color: var(--bronze-dk); font-size: 12px; font-weight: 700; }
.work-meta { color: var(--muted); font-weight: 600; margin: -4px 0 12px; }
.work-gallery { columns: 3 280px; column-gap: 14px; }
.work-shot { position: relative; display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--stone-200); break-inside: avoid; }
.work-shot img { width: 100%; height: auto; display: block; transition: transform 1s var(--ease); }
.work-shot:hover img, .work-shot:focus-visible img { transform: scale(1.04); }
.work-shot:hover .shot-zoom, .work-shot:focus-visible .shot-zoom { opacity: 1; transform: none; }
.work-shot:focus-visible { outline: 3px solid var(--bronze); outline-offset: -3px; }
.work-shot-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 12px; text-align: left; color: #fff; font-size: 13.5px; font-weight: 600;
  background: linear-gradient(180deg, transparent, rgba(14, 28, 20, .7)); }
.work-body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 36px; }
.work-body .promise { margin-top: 0; }
@media (max-width: 860px) { .work-body { grid-template-columns: 1fr; gap: 24px; } }

/* Admin portfolio */
.pf-thumb { display: block; width: 96px; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--stone-100); }
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.pf-item { border: 1px solid var(--stone-200); border-radius: 10px; padding: 8px; background: var(--surface-2); display: grid; gap: 8px; }
.pf-item.is-cover { border-color: var(--bronze); box-shadow: 0 0 0 1px var(--bronze); }
.pf-img { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--stone-100); }
.pf-img img { width: 100%; height: 100%; object-fit: cover; }
.pf-cover-badge { position: absolute; left: 8px; top: 8px; padding: 2px 9px; border-radius: 99px; background: var(--bronze); color: #fff; font-size: 11.5px; font-weight: 700; }
.pf-item input[type=text] { padding: 7px 9px; font-size: 13px; }
.pf-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.pf-actions .btn { padding: 5px 9px; }
.pf-actions .btn-danger { margin-left: auto; }

/* Contact us page */
.contact-section { padding-top: 48px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.contact-methods h2, .contact-form h2 { font-size: 2rem; margin-bottom: 20px; }
.contact-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: var(--stone-0); border: 1px solid var(--stone-200); border-radius: 12px;
  color: var(--ink-2); text-decoration: none !important; transition: border-color .3s, transform .3s var(--ease), box-shadow .3s; }
a.contact-card:hover, a.contact-card:focus-visible { border-color: var(--bronze-line); transform: translateY(-2px); box-shadow: 0 16px 30px -22px rgba(29, 59, 42, .45); }
.contact-icon { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--bronze-soft); color: var(--bronze); display: flex; align-items: center; justify-content: center; }
.contact-icon .icon { width: 20px; height: 20px; }
.contact-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.contact-card strong { display: block; color: var(--ink); font-size: 1.05rem; margin: 2px 0; }
.contact-sub { display: block; font-size: 13px; color: var(--muted); }
.contact-methods .promise { margin-top: 22px; }
.map-section { padding-top: 8px; }
.map-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 18px; }
.map-head h2 { font-size: 2rem; margin: 0; }
.map-frame { position: relative; aspect-ratio: 16 / 5; min-height: 260px; border: 1px solid var(--stone-200); border-radius: 12px; overflow: hidden; background: var(--stone-100); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 640px) { .map-frame { aspect-ratio: 5 / 4; min-height: 0; } .map-head h2 { font-size: 1.6rem; } }
.contact-form .card-body { padding: 32px; }
.message .message-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 10px; }
.message.is-handled { opacity: .72; }
/* Side by side: the form card starts level with the first contact card and ends level with the left column. */
@media (min-width: 1001px) { .contact-form { align-self: stretch; margin-top: calc(2rem * 1.15 + 20px); margin-bottom: 0; } }
@media (max-width: 1000px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 760px) { .contact-form .card-body { padding: 22px; } }
.footer-bottom { border-top: 1px solid var(--stone-300); margin-top: 36px; padding-top: 18px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.footer-credit a { color: var(--blue); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }
.footer-credit a:hover { color: var(--bronze-dk); }

/* Service detail */
.svc3-hero { position: relative; }
.svc3-media { height: min(72vh, 680px); min-height: 420px; overflow: hidden; background: var(--stone-200); }
.svc3-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08) translateY(var(--py, 0px)); }
.js .svc3-media img { animation: settle 2.4s var(--ease); }
.svc3-panel { position: relative; z-index: 2; margin-top: -200px; background: var(--stone-50); max-width: 720px; padding: 52px 60px 44px 0; }
.svc3-panel::before { content: ""; position: absolute; top: 0; bottom: 0; right: 100%; width: 100vw; background: var(--stone-50); }
.svc3-panel h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); margin-bottom: 20px; }
.svc3-panel .lede { margin-bottom: 30px; }
.crumb { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.crumb a { color: var(--muted); } .crumb a:hover { color: var(--ink); }
.svc-body { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; }
.prose { max-width: 62ch; font-size: 1.06rem; line-height: 1.8; }
.prose h2, .h-sm { font-size: 2.2rem; }
.mini-steps { list-style: none; margin: 0; padding: 0; counter-reset: ms; }
.mini-steps li { counter-increment: ms; position: relative; padding: 0 0 26px 58px; color: var(--ink-2); }
.mini-steps li::before { content: counter(ms); position: absolute; left: 0; top: -4px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--stone-300); display: flex; align-items: center; justify-content: center; font: 500 1.2rem var(--serif); color: var(--ink); background: var(--stone-50); }
.mini-steps li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 34px; bottom: 0; border-left: 1px solid var(--stone-300); }
.mini-steps strong { display: block; color: var(--ink); font-size: 1rem; }

/* Quote page */
.page-band { padding: 56px 0 40px; background: var(--stone-100); border-bottom: 1px solid var(--stone-200); }
.band-inner { max-width: 900px; }
.page-band h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); margin-bottom: 16px; }
.page-band .lede { margin: 0; }
.quote-wrap { max-width: 900px; margin: 0 auto; padding: 36px 24px 72px; }
.quote-wrap > form.card > .card-body { padding: 32px; }
.quote-wrap h2 { font-size: 2rem; }
.service-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.service-pick label { border: 1px solid var(--stone-300); border-radius: var(--radius-sm); padding: 16px; cursor: pointer; height: 100%; margin: 0; background: var(--stone-0); transition: border-color .2s, background .2s, box-shadow .2s; font: 500 1.2rem/1.2 var(--serif); color: var(--ink); }
.service-pick label:hover { border-color: var(--ink); }
.service-pick input { position: absolute; opacity: 0; }
.service-pick input:checked + label { border-color: var(--bronze); box-shadow: inset 0 0 0 1px var(--bronze); background: var(--bronze-soft); }
.service-pick input:focus-visible + label { outline: 2px solid var(--bronze); outline-offset: 3px; }
.service-pick small { display: block; font: 400 12.5px/1.45 var(--sans); color: var(--muted); margin-top: 6px; }
/* Multiple choice: a tick box in the corner of each service */
.service-pick.multi label { position: relative; padding-right: 44px; }
.pick-box { position: absolute; top: 14px; right: 14px; width: 20px; height: 20px; border: 1.5px solid var(--stone-300); border-radius: 5px; background: #fff; transition: background .2s, border-color .2s; }
.pick-box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .2s var(--ease); }
.service-pick input:checked + label .pick-box { background: var(--bronze); border-color: var(--bronze); }
.service-pick input:checked + label .pick-box::after { transform: rotate(45deg) scale(1); }
.svc-notes { margin-top: 16px; display: grid; gap: 0; }
.js .svc-note:not(.is-on) { display: none; }
.svc-note.is-on { animation: fade-up .35s var(--ease); }
.svc-note textarea { min-height: 64px; }
.signin-gate { padding: 40px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.signin-gate h2 { font-size: 2rem; margin-bottom: 8px; }
.signin-gate p { margin: 0; }
.signin-gate .gate-actions { display: grid; gap: 10px; min-width: 250px; }
.schedule { width: 100%; border-collapse: collapse; background: var(--stone-0); border: 1px solid var(--stone-200); }
.schedule td { padding: 18px; border-bottom: 1px solid var(--stone-200); vertical-align: top; font-size: 15px; }
.schedule tr:last-child td { border-bottom: none; }
.schedule .mark { width: 56px; font: 500 1.3rem var(--serif); color: var(--bronze); }
.schedule .svc { width: 36%; }
.schedule .svc a { font: 500 1.35rem var(--serif); color: var(--ink); }
.svc-photo { width: 100%; max-width: 200px; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 10px; }

/* Sign in / create account */
.auth-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - var(--auth-head, 81px)); min-height: calc(100svh - var(--auth-head, 81px)); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 44px 24px; }
.auth-form-inner { width: 100%; max-width: 440px; }
.auth-form h1 { font-size: 3rem; margin-bottom: 8px; }
.auth-form-inner > .muted { margin-bottom: 30px; }
.auth-alt { margin: 24px 0 10px; padding-top: 22px; border-top: 1px solid var(--stone-200); }
.auth-panel { position: relative; overflow: hidden; background: var(--stone-200); display: flex; align-items: flex-end; padding: 48px; }
.auth-panel-bg { position: absolute; inset: 0; background: center / cover no-repeat; }
.js .auth-panel-bg { animation: slow-zoom 20s ease-out forwards; }
@keyframes slow-zoom { from { transform: scale(1.14); } to { transform: scale(1); } }
.auth-panel-card { position: relative; z-index: 1; background: var(--stone-50); padding: 28px 30px 16px; max-width: 400px; box-shadow: var(--shadow-lg); }
.auth-panel-card strong { display: block; font: 500 1.6rem/1.2 var(--serif); color: var(--ink); }
.auth-panel-card .checks { margin-top: 12px; }
.auth-wrap { display: flex; align-items: center; justify-content: center; padding: 56px 24px; }
.auth-card { width: 100%; max-width: 460px; box-shadow: var(--shadow-lg); }
.auth-card .card-body { padding: 36px; }
.auth-card h1 { font-size: 2.6rem; }

/* ---------------------------------------------------------------- motion */
.js .headline .line > span { transform: translateY(110%); animation: rise 1s var(--ease) forwards; }
.js .headline .line:nth-child(2) > span { animation-delay: .12s; }
.js .headline .line:nth-child(3) > span { animation-delay: .24s; }
.js .fade-in { opacity: 0; animation: fade-up .9s var(--ease) .5s forwards; }
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .img-reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s cubic-bezier(.75, 0, .2, 1); transition-delay: var(--d, 0ms); }
.js .img-reveal.is-in { clip-path: inset(0 0 0 0); }
@keyframes rise { to { transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .js .headline .line > span, .js .fade-in { animation: none; transform: none; opacity: 1; }
  .js [data-reveal], .js [data-slide] { opacity: 1; transform: none; transition: none; }
  .svc-card, .svc-card-img img, .svc-card-more { transition: none; }
  .svc-card:hover { transform: none; }
  .js .img-reveal { clip-path: none; transition: none; }
  .js .hero-slide.is-active img, .js .svc3-media img, .js .auth-panel-bg { animation: none; }
  .hero-slide { transition: none; }
  [data-card-show] img { transition: none; }
  .js [data-slideshow] .hero-dot.is-active span { animation: none; transform: scaleX(1); }
  .js .bar span { width: var(--w); transition: none; }
  .js .mock3 .mock-row, .js .pmock .mock-row { opacity: 1; transform: none; }
  .pmock-panel.is-active, .feat, .feat-icon { animation: none; transition: none; }
  .js .steps3 { --fill: 1; } .js .step3 .step3-num { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
  .modal-backdrop, .modal { animation: none; }
  .js .marquee-track { animation: none; }
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; padding: 6px 18px 14px; }
  .lightbox, .lb-figure img { animation: none; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .split { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro, .feature, .svc-body { grid-template-columns: 1fr; gap: 56px; }
  .tiles, .tiles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-card-wrap, .svc-cards-4 .svc-card-wrap { flex-basis: calc((100% - 28px) / 2); }
  .tile.wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-split { grid-template-columns: 1fr; } .auth-panel { display: none; }
}
@media (max-width: 860px) {
  .sidebar { position: fixed; left: -270px; z-index: 40; transition: left .25s var(--ease); }
  body.sidebar-open .sidebar { left: 0; box-shadow: 0 0 50px rgba(29, 59, 42, .22); }
  .menu-toggle { display: flex; }
  .content { padding: 20px 16px 40px; }
  .topbar { padding: 0 16px; }
  .topbar-user { display: none; }
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  dl.kv { grid-template-columns: 1fr; gap: 2px 0; } dl.kv dd { margin-bottom: 10px; }
  .page-head h1 { font-size: 1.85rem; }
}
@media (max-width: 760px) {
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .hero3-media { height: calc(100vh - 68px); height: calc(100svh - 68px); min-height: 520px; max-height: 760px; }
  .hero3 > .container { align-items: flex-end; padding-bottom: 18px; }
  .hero3-panel { padding: 24px 22px 22px; border-radius: 14px; background: rgba(255, 255, 255, .8); }
  .hero3-controls { top: 14px; right: 14px; gap: 10px; padding: 6px 8px 6px 12px; }
  .hero3-caption { display: none; }
  .svc3-panel { margin-top: -64px; padding: 34px 22px 8px 0; }
  .tiles, .tiles-4 { grid-template-columns: 1fr; gap: 44px; }
  .svc-card-wrap, .svc-cards-4 .svc-card-wrap, .svc-cards-compact .svc-card-wrap { flex-basis: 100%; }
  .js [data-slide].from-left:not(.is-in), .js [data-slide].from-right:not(.is-in) { transform: translateY(24px); } .tile.wide { grid-column: auto; } .tile.wide .tile-img { min-height: 0; aspect-ratio: 4 / 3; flex: none; }
  .steps3 { grid-template-columns: 1fr; gap: 34px; }
  .steps3::before, .steps3::after { top: 0; bottom: 0; left: 30px; right: auto; width: 1px; height: auto; }
  .steps3::after { transform-origin: top; transform: scaleY(var(--fill)); }
  .step3 { padding: 8px 0 0 88px; } .step3 h3 { margin-top: 0; }
  .feature-media { padding-bottom: 0; } .feature-photo { width: 100%; aspect-ratio: 4 / 3; }
  .mock3 { position: relative; width: 100%; margin-top: -48px; }
  .mock-stats { grid-template-columns: 1fr 1fr; }
  .shot { width: 56vw; }
  .js .marquee-track { animation-duration: 45s; }
  .lightbox { padding: 64px 12px 96px; }
  .lb-figure img { max-height: calc(100vh - 230px); }
  .lb-prev, .lb-next { top: auto; bottom: 22px; transform: none; }
  .lb-prev { left: calc(50% - 62px); } .lb-next { right: calc(50% - 62px); }
  .closing3 { padding: 64px 0; } .closing3-card { padding: 34px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .signin-gate { grid-template-columns: 1fr; padding: 28px 22px; }
  .schedule, .schedule tbody, .schedule tr, .schedule td { display: block; width: auto !important; }
  .schedule tr { padding: 14px; border-bottom: 1px solid var(--stone-200); } .schedule td { padding: 4px 0; border: none; }
  .quote-wrap > form.card > .card-body { padding: 22px; }
}

/* QuickBooks "Test connection" results */
.qb-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.qb-checks li { display: flex; gap: 12px; align-items: flex-start; }
.qb-mark { flex: none; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.qb-checks li.ok .qb-mark { background: var(--green-bg); color: var(--green); }
.qb-checks li.bad .qb-mark { background: var(--red-bg); color: var(--red); }
.qb-checks li.skip .qb-mark { background: var(--gray-bg); color: var(--gray); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Header: the full menu needs ~1080px; below that it folds into the menu button. */
@media (max-width: 1080px) {
  .site-header-inner { height: 68px; gap: 12px; }
  .site-nav { position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--stone-50); border-bottom: 1px solid var(--stone-200);
    padding: 8px max(18px, calc((100vw - 1200px) / 2)) 18px; max-height: calc(100vh - 68px); max-height: calc(100svh - 68px); overflow-y: auto;
    box-shadow: 0 24px 34px -24px rgba(29, 59, 42, .3); transform: translateY(-8px); opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .25s, transform .25s, visibility 0s .25s; }
  .nav-open .site-nav { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .25s, transform .25s; }
  .site-nav a { padding: 15px 2px; border-bottom: 1px solid var(--stone-200); background: none; font-size: 16px; }
  .nav-toggle { display: flex; }
  .header-actions .btn { padding: 8px 12px; }
}
/* Very small phones: the header button moves into the menu so the logo has room. */
.site-nav .nav-cta { display: none; }
@media (max-width: 520px) {
  .header-actions .btn { display: none; }
  .site-nav a.nav-cta { display: flex; justify-content: center; margin-top: 14px; padding: 13px 18px; border: 0; border-radius: var(--radius-sm); background: var(--ink); color: var(--on-ink); font-size: 15px; font-weight: 700; }
  .site-header .brand { min-width: 0; }
  .brand-logo { max-width: 150px; height: 34px; }
}

/* ---------------------------------------------------------------- responsive safety net */
/* Slide-in animations start off to the side; never let them (or anything else) scroll the page sideways. */
#main { overflow-x: clip; }
code { overflow-wrap: anywhere; }
/* Wide tables scroll inside their card; a soft shadow on the edge shows there is more to see. */
.table-wrap { -webkit-overflow-scrolling: touch;
  background: linear-gradient(90deg, var(--stone-0) 30%, rgba(255, 255, 255, 0)) left / 28px 100% no-repeat local,
              linear-gradient(270deg, var(--stone-0) 30%, rgba(255, 255, 255, 0)) right / 28px 100% no-repeat local,
              radial-gradient(farthest-side at 0 50%, rgba(29, 59, 42, .16), transparent) left / 12px 100% no-repeat scroll,
              radial-gradient(farthest-side at 100% 50%, rgba(29, 59, 42, .16), transparent) right / 12px 100% no-repeat scroll; }
.table-wrap th { background-clip: padding-box; }
.bars .bar { min-width: 0; }
@media (max-width: 560px) { .bars { gap: 4px; } .bars .bar small { font-size: 10px; } }
/* Grid and flex children may shrink below their content, so long text wraps instead of widening the page. */
.grid > *, .split > *, .portal4 > *, .work-body > *, .contact-grid > *, .card, .card-body, fieldset { min-width: 0; }
fieldset { min-inline-size: 0; }
input, select, textarea, img, video, iframe { max-width: 100%; }
.card-head > * { min-width: 0; overflow-wrap: anywhere; }
.req-head > * { min-width: 0; overflow-wrap: anywhere; }
td, th { overflow-wrap: break-word; }
@media (max-width: 560px) {
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  .span2 { grid-column: auto; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px 14px; } .stat-value { font-size: 1.55rem; overflow-wrap: anywhere; } .stat-sub, .stat-label { font-size: 12px; }
  .content { padding: 16px 12px 36px; }
  .card-body { padding-left: 16px; padding-right: 16px; }
  .card-head { padding: 14px 16px; }
  .totals { max-width: none; }
  .page-head h1 { font-size: 1.6rem; }
  .page-head .btn, .page-head form { flex: 1 1 auto; }
  table { font-size: 13.5px; }
  th, td { padding-left: 10px; padding-right: 10px; }
}

/* Cards on phones: compact, two per row on large phones and one per row on small ones. */
@media (max-width: 760px) {
  .svc-cards { gap: 16px; }
  .svc-card-wrap, .svc-cards-4 .svc-card-wrap, .svc-cards-compact .svc-card-wrap { flex-basis: calc((100% - 16px) / 2); }
  .svc-card-img, .work-card .svc-card-img { aspect-ratio: 3 / 2; }
  .svc-card-body { padding: 14px 16px 16px; }
  .svc-card-name, .svc-cards-compact .svc-card-name { font-size: 1.25rem; }
  .svc-card-sum { flex: none; margin-top: 4px; font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .svc-card-more { display: none; }
  .work-tag { margin-bottom: 6px; font-size: 11px; padding: 2px 8px; }
  .svc-card:hover, .svc-card:focus-visible { transform: none; }
}
@media (max-width: 520px) {
  .svc-card-wrap, .svc-cards-4 .svc-card-wrap, .svc-cards-compact .svc-card-wrap { flex-basis: 100%; }
  .svc-card-img, .work-card .svc-card-img { aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-slide], .js [data-slide].from-left, .js [data-slide].from-right, .js [data-slide].from-center { opacity: 1; transform: none; transition: none; }
}


/* ---------------------------------------------------------------- services index page */
/* Services page: photo cards with the title over a dark fade. */
.svc-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.svc-tile { position: relative; display: flex; align-items: flex-end; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  background: var(--ink); color: #fff; text-decoration: none !important; box-shadow: var(--shadow); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.svc-tile-wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.svc-tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.svc-tile::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14, 28, 20, 0) 30%, rgba(14, 28, 20, .55) 62%, rgba(14, 28, 20, .88) 100%); }
.svc-tile-num { position: absolute; left: 18px; top: 16px; font: 500 15px/1 var(--serif); color: var(--ink); background: rgba(255, 255, 255, .9); padding: 7px 11px; border-radius: 99px; }
.svc-tile-body { display: block; width: 100%; padding: 28px 30px 26px; }
.svc-tile-name { display: block; font: 500 clamp(1.6rem, 2.4vw, 2.1rem)/1.15 var(--serif); color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.svc-tile-wide .svc-tile-name { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.svc-tile-sum { display: block; margin-top: 8px; max-width: 52ch; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .9); }
.svc-tile-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 16px; }
.svc-tile-more { font-size: 14px; font-weight: 700; color: #fff; padding-bottom: 3px; border-bottom: 1px solid rgba(255, 255, 255, .7); }
.svc-tile-more::after { content: " \2192"; display: inline-block; transition: transform .3s var(--ease); }
.svc-tile-count { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, .85); }
.svc-tile-count .icon { width: 15px; height: 15px; }
.svc-tile:hover, .svc-tile:focus-visible { transform: translateY(-6px); box-shadow: 0 30px 56px -30px rgba(29, 59, 42, .6); }
.svc-tile:hover img, .svc-tile:focus-visible img { transform: scale(1.06); }
.svc-tile:hover .svc-tile-more::after, .svc-tile:focus-visible .svc-tile-more::after { transform: translateX(4px); }
.svc-tile:focus-visible { outline: 3px solid var(--bronze); outline-offset: 3px; }
@media (max-width: 900px) { .svc-tile-wide { aspect-ratio: 4 / 3; } }
@media (max-width: 700px) { .svc-tiles { grid-template-columns: 1fr; gap: 16px; } .svc-tile, .svc-tile-wide { aspect-ratio: 4 / 5; } .svc-tile-body { padding: 22px 20px 20px; } }
@media (prefers-reduced-motion: reduce) { .svc-tile, .svc-tile img, .svc-tile-more::after { transition: none; } .svc-tile:hover { transform: none; } .svc-tile:hover img { transform: none; } }
/* Page header with photo (About, Services, Our work, Contact) */
.page-hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.page-hero-copy { min-width: 0; }
.page-crumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.page-crumbs a { color: var(--bronze-dk); text-decoration: none; }
.page-crumbs a:hover { text-decoration: underline; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.page-hero-img { aspect-ratio: 16 / 11; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--stone-200); }
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) { .page-hero-inner { grid-template-columns: 1fr; gap: 26px; } .page-hero-img { aspect-ratio: 16 / 9; } }
@media (max-width: 560px) { .page-hero-actions .btn { flex: 1 1 100%; justify-content: center; } }
/* Service detail: description plus what every job comes with */
.svc-body > * { min-width: 0; }
.svc-body h2 { font-size: clamp(1.8rem, 2.6vw, 2.2rem); margin-bottom: 14px; }
.svc-every .btn { white-space: normal; text-align: center; max-width: 100%; }
@media (max-width: 560px) { .svc-every { padding: 20px 18px; } .svc-every .btn { width: 100%; justify-content: center; } }
.svc-desc { font-size: 1.06rem; line-height: 1.75; color: var(--ink-2); margin: 0 0 26px; }
.svc-every { padding: 24px 26px; border-radius: var(--radius); background: var(--stone-0); border: 1px solid var(--stone-200); box-shadow: var(--shadow); }
.svc-every h3 { margin: 0 0 14px; font-size: 15px; font-weight: 700; letter-spacing: .02em; color: var(--ink); }
.svc-every ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.svc-every li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.svc-every li .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--bronze); }
body.public .svc-every { background: var(--glass-bg, var(--stone-0)); border-color: var(--glass-edge, var(--stone-200)); box-shadow: var(--glass-shadow, var(--shadow)); }
/* Banner header (Services, Our work, Contact): photo across the full width, dark green fade, white text */
.page-banner { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; min-height: clamp(380px, 52vh, 520px); padding: 64px 0; border-bottom: 0; background: var(--ink); }
.page-banner-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-banner-img { object-position: var(--banner-pos, 50% 50%); }
.page-banner::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(14, 28, 20, .86) 0%, rgba(14, 28, 20, .66) 45%, rgba(14, 28, 20, .2) 100%), linear-gradient(0deg, rgba(14, 28, 20, .35), rgba(14, 28, 20, 0) 40%); }
.page-banner .page-hero-inner { display: block; width: 100%; }
.page-banner .page-hero-copy { max-width: 640px; }
.page-banner .headline, .page-banner .lede { color: #fff; }
.page-banner .lede { color: rgba(255, 255, 255, .88); }
.page-banner .page-crumbs, .page-banner .page-crumbs a { color: rgba(255, 255, 255, .78); }
.page-banner .page-crumbs a:hover { color: #fff; }
.page-banner .page-hero-actions .btn-primary { background: #fff; border-color: #fff; color: var(--ink); }
.page-banner .page-hero-actions .btn-primary:hover { background: var(--bronze-soft); border-color: var(--bronze-soft); }
.page-banner .page-hero-actions .btn:not(.btn-primary) { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.page-banner .page-hero-actions .btn:not(.btn-primary):hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
@media (max-width: 700px) { .page-banner { min-height: 0; padding: 48px 0 40px; }
  .page-banner::before { background: linear-gradient(180deg, rgba(14, 28, 20, .7) 0%, rgba(14, 28, 20, .82) 100%); } }
/* About: Why choose us */
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.why-card { padding: 28px 26px; border-radius: var(--radius); background: var(--stone-0); border: 1px solid var(--stone-200); box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
body.public .why-card { background: var(--glass-bg, var(--stone-0)); border-color: var(--glass-edge, var(--stone-200)); box-shadow: var(--glass-shadow, var(--shadow)); }
.why-card:hover { transform: translateY(-4px); }
.why-icon { display: inline-flex; width: 50px; height: 50px; border-radius: 50%; align-items: center; justify-content: center; background: var(--bronze-soft); color: var(--bronze); margin-bottom: 18px; }
.why-icon .icon { width: 23px; height: 23px; }
.why-card h3 { margin: 0 0 8px; font: 700 1.1rem/1.3 var(--sans); color: var(--ink); }
.why-card p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
@media (max-width: 960px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; gap: 14px; } .why-card { padding: 22px 20px; } }
@media (prefers-reduced-motion: reduce) { .why-card { transition: none; } .why-card:hover { transform: none; } }
/* About page */
.about-hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.about-hero .band-inner { padding: 0; }
.about-hero-img { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--stone-200); }
.about-hero-img img, .about-intro-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.about-intro-img { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--stone-200); }
.about-intro-copy h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.08; margin: 10px 0 18px; }
.about-intro-copy p { color: var(--ink-2); line-height: 1.75; margin: 0 0 14px; }
.about-intro-copy .about-lead { font-size: 1.12rem; color: var(--ink); }
/* About: Who we are */
.who-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: 64px; row-gap: 32px; align-items: stretch; }
/* Row 1: the description starts level with the heading (below the small label). Row 2: the list runs from the top to the bottom of the photo. */
.who-body { padding-top: 38px; }
.who-points { display: flex; flex-direction: column; }
.who-grid .who-points li { flex: 1; align-items: center; }
.who-eyebrow { display: inline-block; margin-bottom: 18px; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze-dk); }
.who-head h2 { margin: 0; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; }
.who-photo { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--stone-200); box-shadow: var(--shadow); }
.who-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.who-more { display: inline-block; margin-top: 18px; }
.who-lead { margin: 0; font-size: 1.12rem; line-height: 1.75; color: var(--ink); }
.who-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--stone-200); }
.who-points li { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--stone-200); }
.who-icon { flex: none; display: inline-flex; width: 46px; height: 46px; border-radius: 50%; align-items: center; justify-content: center; background: var(--bronze-soft); color: var(--bronze); }
.who-icon svg { width: 22px; height: 22px; }
.who-points strong { display: block; font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.who-points div span { display: block; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 900px) { .who-grid { grid-template-columns: 1fr; row-gap: 22px; } .who-photo { aspect-ratio: 16 / 10; } .who-body { padding-top: 0; } }
.about-mv { background: var(--stone-100); }
.mv-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.mv-card { padding: 34px 32px; background: var(--stone-0); border: 1px solid var(--stone-200); border-top: 3px solid var(--bronze); border-radius: var(--radius); box-shadow: var(--shadow); }
.mv-icon { display: inline-flex; width: 52px; height: 52px; border-radius: 50%; align-items: center; justify-content: center; background: var(--bronze-soft); color: var(--bronze); margin-bottom: 18px; }
.mv-icon svg { width: 26px; height: 26px; }
.mv-card h3 { font: 500 1.8rem/1.15 var(--serif); margin: 0 0 10px; }
.mv-card p { margin: 0; color: var(--ink-2); line-height: 1.75; }
.about-cta-section { padding-top: 0; }
.about-cta-section .svc-list-cta { margin-top: 0; }
.about-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .about-hero-inner, .about-intro-grid { grid-template-columns: 1fr; gap: 32px; } .about-intro-img { aspect-ratio: 4 / 3; } }
@media (max-width: 700px) { .mv-cards { grid-template-columns: 1fr; gap: 16px; } .mv-card { padding: 26px 22px; } }
.svc-list-section { padding-top: 56px; }
.svc-list { display: grid; gap: 64px; }
.svc-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.svc-row.flip .svc-row-img { order: 2; }
.svc-row-img { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--stone-200); box-shadow: var(--shadow); }
.svc-row-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.svc-row-img:hover img { transform: scale(1.05); }
.svc-row-num { position: absolute; left: 16px; top: 14px; font: 500 15px/1 var(--serif); color: var(--ink); background: rgba(255, 255, 255, .88); padding: 7px 11px; border-radius: 99px; letter-spacing: .04em; }
.svc-row-body h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.svc-row-body h2 a { color: var(--ink); text-decoration: none; }
.svc-row-body h2 a:hover { color: var(--bronze-dk); }
.svc-row-sum { margin: 0 0 22px; color: var(--ink-2); font-size: 1.04rem; line-height: 1.7; }
.svc-row-label { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bronze-dk); }
.svc-row-steps ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; counter-reset: st; }
.svc-row-steps li { counter-increment: st; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 7px; border: 1px solid var(--stone-200); border-radius: 99px; background: var(--stone-0); font-size: 13.5px; color: var(--ink-2); }
.svc-row-steps li::before { content: counter(st); display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--bronze-soft); color: var(--bronze-dk); font-size: 11.5px; font-weight: 700; }
.svc-row-steps li.more { padding-left: 12px; color: var(--muted); } .svc-row-steps li.more::before { display: none; }
.svc-row-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.link-arrow { font-weight: 700; color: var(--ink); text-decoration: none !important; border-bottom: 1px solid var(--bronze); padding-bottom: 3px; }
.link-arrow::after { content: " \2192"; display: inline-block; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-quiet { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 600; }
.link-quiet .icon { width: 15px; height: 15px; }
.svc-list-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-top: 80px; padding: 36px 40px; border-radius: var(--radius); background: var(--stone-100); border: 1px solid var(--stone-200); }
.svc-list-cta h2 { margin: 0 0 6px; font-size: 1.8rem; }
.svc-list-cta p { margin: 0; color: var(--muted); max-width: 34em; }
@media (max-width: 900px) {
  .svc-row, .svc-row.flip { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .svc-row.flip .svc-row-img { order: 0; }
  .svc-list { gap: 48px; }
}
@media (max-width: 560px) {
  .svc-list-section { padding-top: 36px; }
  .svc-list { gap: 40px; }
  .svc-row { gap: 16px; }
  .svc-row-body h2 { font-size: 1.6rem; margin-bottom: 8px; }
  .svc-row-sum { font-size: .98rem; margin-bottom: 16px; }
  .svc-row-steps ol { gap: 6px; margin-bottom: 18px; }
  .svc-row-steps li { font-size: 12.5px; }
  .svc-list-cta { margin-top: 56px; padding: 24px 20px; } .svc-list-cta .btn { width: 100%; justify-content: center; }
}

/* ---------------------------------------------------------------- admin: services */
.step-editor { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.step-row { display: flex; align-items: center; gap: 8px; }
.step-num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bronze-soft); color: var(--bronze-dk); font-size: 12.5px; font-weight: 700; }
.step-num:empty::before { content: "\2022"; }
.step-row input { flex: 1; min-width: 0; }
.step-tools { flex: none; display: inline-flex; gap: 2px; }
.step-tools .btn { padding: 6px 8px; }
.step-tools .icon { width: 14px; height: 14px; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span { display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid var(--stone-300); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: var(--stone-100); color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.input-prefix input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; min-width: 0; }
.sv-photo { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 14px; }
@media (max-width: 560px) { .step-tools .btn { padding: 6px; } .input-prefix span { padding: 0 8px; font-size: 12.5px; } }

.link-btn { padding: 0; border: 0; background: none; color: var(--bronze-dk); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* ---------------------------------------------------------------- email-or-phone sign-in */
.or-rule { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; }
.or-rule::before, .or-rule::after { content: ""; flex: 1; height: 1px; background: var(--stone-200); }
.choice-group { border: 0; padding: 0; margin-left: 0; margin-right: 0; }
.choice-group legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 13.5px; color: var(--ink); }
.choice-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice-group legend { grid-column: 1 / -1; }
.choice { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border: 1px solid var(--stone-300); border-radius: var(--radius-sm); background: var(--field); cursor: pointer; font-weight: 400; transition: border-color .2s, box-shadow .2s, background .2s; }
.choice input { margin-top: 3px; accent-color: var(--ink); }
.choice span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.choice strong { font-size: 14px; color: var(--ink); }
.choice small { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.choice:has(input:checked) { border-color: var(--ink); background: var(--stone-0); box-shadow: 0 0 0 3px rgba(47, 122, 75, .14); }
@media (max-width: 420px) { .choice-group { grid-template-columns: minmax(0, 1fr); } }
.otp-input { font-size: 26px !important; letter-spacing: .45em; text-align: center; font-variant-numeric: tabular-nums; padding: 12px 10px !important; }
.otp-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; margin-top: 16px; font-size: 14px; }
.phone-status { margin-top: 8px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.phone-status.ok { color: var(--green); }
.phone-status .icon { width: 15px; height: 15px; }


/* =====================================================================
   Signed-in app refresh (admin + customer portal): "site office"
   Deep forest rail, calm mint workspace, key figures in one ledger strip,
   the pipeline as a stage track, and the customer's own photos on projects.
   ===================================================================== */
:root {
  --rail: #183223;            /* sidebar */
  --rail-hover: rgba(255, 255, 255, .06);
  --rail-active: rgba(255, 255, 255, .11);
  --rail-text: #d5e5d8;
  --rail-muted: #8eaa96;
  --rail-line: rgba(255, 255, 255, .09);
  --rail-mark: #93d3a8;       /* active marker on the dark rail */
  --line-soft: #e3ece1;       /* hairlines inside cards */
  --radius-lg: 12px;
  --shadow-soft: 0 1px 2px rgba(29, 59, 42, .04), 0 10px 28px -20px rgba(29, 59, 42, .28);
}
.text-red { color: var(--red) !important; }
.text-green { color: var(--green) !important; }

/* ---- Rail */
.shell .sidebar { background: var(--rail); border-right: 0; color: var(--rail-text); scrollbar-color: rgba(255, 255, 255, .18) transparent; }
.shell .sidebar .brand { color: #fff; border-bottom-color: var(--rail-line); padding: 22px 22px 20px; }
.shell .sidebar .brand-tag { color: var(--rail-muted); }
.shell .sidebar .logo-slot { color: #fff; opacity: .45; }
.shell .sidebar .brand-logo { background: #fff; padding: 4px 8px; border-radius: 6px; height: 40px; }
.shell .side-nav { padding: 12px 12px 16px; }
.shell .side-group { color: var(--rail-muted); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; padding: 18px 12px 6px; }
.shell .side-nav a { color: var(--rail-text); border-radius: 8px; padding: 9px 12px; }
.shell .side-nav a .icon { color: var(--rail-muted); }
.shell .side-nav a:hover { background: var(--rail-hover); color: #fff; }
.shell .side-nav a:hover .icon { color: var(--rail-text); }
.shell .side-nav a.active { background: var(--rail-active); color: #fff; font-weight: 700; }
.shell .side-nav a.active::before { left: -12px; top: 9px; bottom: 9px; background: var(--rail-mark); }
.shell .side-nav a.active .icon { color: var(--rail-mark); }
.shell .side-nav a:focus-visible { outline: 2px solid var(--rail-mark); outline-offset: -2px; }
.shell .side-nav .count { background: rgba(255, 255, 255, .14); color: #fff; }
.shell .side-nav .count-red { background: #e0675c; color: #fff; }
.shell .side-foot { border-top-color: var(--rail-line); }
.shell .side-foot .muted { color: var(--rail-muted); }
.shell .side-foot .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .24); }
.shell .side-foot .btn-ghost:hover { background: var(--rail-hover); border-color: rgba(255, 255, 255, .4); }

/* ---- Top bar and page heading */
.shell .topbar { background: rgba(255, 255, 255, .9); border-bottom-color: var(--line-soft); }
.shell .topbar-search input { background: var(--stone-50); border-color: transparent; border-radius: 999px; padding: 9px 16px; }
.shell .topbar-search input:focus { background: #fff; border-color: var(--ink); }
.shell .content { padding: 34px 36px 56px; }
.shell .page-head { margin-bottom: 28px; }
.shell .page-head h1 { font-size: clamp(1.9rem, 2.6vw, 2.5rem); line-height: 1.1; margin-bottom: 6px; }

/* ---- Cards: lighter frames, rounder corners than the controls inside them */
.shell .card { border-color: var(--line-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); margin-bottom: 22px; }
.shell .card-head { border-bottom-color: var(--line-soft); padding: 16px 22px; }
.shell .card-head h2, .shell .card-head h3 { font-size: 15px; color: var(--ink); }
.shell .card-body { padding: 22px; }
.shell .list li { border-bottom-color: var(--line-soft); padding: 14px 22px; }
.shell .table-wrap, .shell .card > table { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.shell th { background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 600; border-bottom: 1px solid var(--stone-200); padding-top: 12px; padding-bottom: 10px; }
.shell td { border-bottom-color: var(--line-soft); }
.shell tbody tr { transition: background .15s; }
.shell tbody tr:hover td { background: #f7fbf6; }
.shell tbody tr:last-child td { border-bottom: 0; }
.shell .notice { border-radius: 10px; }

/* ---- Key figures: one ledger strip with hairlines between cells (works when it wraps) */
.shell .stats { gap: 0; background: var(--stone-0); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); overflow: hidden; margin-bottom: 26px; }
.shell .stat { background: transparent; border: 0; border-radius: 0; box-shadow: -1px 0 0 var(--line-soft), 0 -1px 0 var(--line-soft); padding: 20px 24px 22px; }
.shell a.stat:hover { background: #f7fbf6; border-color: transparent; box-shadow: -1px 0 0 var(--line-soft), 0 -1px 0 var(--line-soft); }
.shell .stat-label { font-size: 12.5px; }
.shell .stat-value { font-size: 2.1rem; margin: 8px 0 4px; }
.shell .stat .progress { height: 5px; margin-top: 12px; }

/* ---- Pipeline as a stage track */
.shell .pipeline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(92px, 1fr); gap: 0; overflow-x: auto; padding: 0 0 4px; }
.shell .pipe { position: relative; background: none; border: 0; border-radius: 10px; padding: 34px 8px 12px; text-align: center; }
.shell .pipe::before { content: ""; position: absolute; top: 14px; left: 0; right: 0; height: 2px; background: var(--stone-200); }
.shell .pipe:first-child::before { left: 50%; }
.shell .pipe:last-child::before { right: 50%; }
.shell .pipe::after { content: ""; position: absolute; top: 9px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--stone-0); border: 2px solid var(--stone-300); }
.shell .pipe.has::after { background: var(--bronze); border-color: var(--bronze); box-shadow: 0 0 0 4px var(--bronze-soft); }
.shell .pipe.red::after { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 4px var(--red-bg); }
.shell .pipe:hover { background: #f4f9f3; border-color: transparent; }
.shell .pipe b { font-size: 1.75rem; color: var(--stone-300); }
.shell .pipe.has b { color: var(--ink); }
.shell .pipe.red b { color: var(--red); }
.shell .pipe span { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.shell .pipe.has span { color: var(--ink-2); font-weight: 600; }

/* ---- Customer portal: project cards with the customer's own photo */
.proj-card { display: grid; grid-template-columns: minmax(220px, 34%) minmax(0, 1fr); background: var(--stone-0); border: 1px solid var(--line-soft); border-radius: 16px; box-shadow: var(--shadow-soft); overflow: hidden; margin-bottom: 22px; }
.proj-photo { position: relative; display: block; min-height: 240px; background: linear-gradient(135deg, var(--stone-100), var(--bronze-soft)); }
.proj-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.proj-photo:hover img { transform: scale(1.04); }
.proj-body { display: flex; flex-direction: column; gap: 20px; padding: 26px 30px 28px; min-width: 0; }
.proj-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.proj-top h2 { margin: 0 0 4px; font-size: 1.75rem; line-height: 1.15; }
.proj-top h2 a { color: var(--ink); text-decoration: none; }
.proj-top h2 a:hover { color: var(--bronze-dk); }
.proj-where { margin: 0; color: var(--muted); font-size: 14px; }
.proj-where span { margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--stone-300); }
.proj-progress-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.proj-progress-row strong { font: 500 1.5rem/1 var(--serif); color: var(--ink); }
.proj-progress .progress { height: 8px; }
.proj-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line-soft); }
.proj-facts > div { padding: 16px 16px 0 0; }
.proj-facts > div + div { padding-left: 16px; border-left: 1px solid var(--line-soft); }
.proj-facts dt { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.proj-facts dd { margin: 0; font: 500 1.2rem/1.25 var(--serif); color: var(--ink); overflow-wrap: anywhere; }
.proj-facts dd small { display: block; margin-top: 3px; font: 500 12.5px/1.4 var(--sans); color: var(--muted); }
.proj-body > .btn { align-self: flex-start; }

/* ---- Customer portal: project page header with photo */
.proj-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: stretch; background: var(--stone-0); border: 1px solid var(--line-soft); border-radius: 16px; box-shadow: var(--shadow-soft); overflow: hidden; margin-bottom: 24px; }
.proj-hero.no-photo { grid-template-columns: minmax(0, 1fr); }
.proj-hero-text { padding: 28px 32px 26px; display: flex; flex-direction: column; justify-content: center; }
.proj-hero-text h1 { font-size: clamp(2rem, 3vw, 2.7rem); line-height: 1.08; margin: 6px 0 8px; }
.proj-hero-text > p { margin: 0 0 18px; }
.proj-hero-photo { position: relative; min-height: 220px; }
.proj-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1100px) {
  .proj-card { grid-template-columns: minmax(0, 1fr); }
  .proj-photo { min-height: 0; aspect-ratio: 21 / 9; }
}
@media (max-width: 860px) {
  .shell .content { padding: 20px 16px 40px; }
  .proj-hero { grid-template-columns: minmax(0, 1fr); }
  .proj-hero-photo { order: -1; min-height: 0; aspect-ratio: 21 / 9; }
  .proj-hero-text { padding: 22px 22px 20px; }
}
@media (max-width: 560px) {
  .shell .stats { gap: 0; }
  .shell .stat { padding: 14px 16px 16px; }
  .proj-body { padding: 20px 18px 22px; gap: 16px; }
  .proj-top { flex-direction: column; gap: 10px; }
  .proj-top h2 { font-size: 1.45rem; }
  .proj-photo { aspect-ratio: 16 / 9; }
  .proj-facts { grid-template-columns: minmax(0, 1fr); }
  .proj-facts > div, .proj-facts > div + div { padding: 12px 0; border-left: 0; border-bottom: 1px solid var(--line-soft); }
  .proj-facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
  .proj-where span { display: block; margin: 2px 0 0; padding: 0; border: 0; }
  .shell .card-head, .shell .list li { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) { .proj-photo img { transition: none; } }
/* Full-height figures for numbers set in the serif (dates, money, references) */
.shell h1, .shell h2, .shell .topbar-title, .shell .stat-value, .proj-facts dd, .proj-progress-row strong, .shell .pipe b { font-variant-numeric: lining-nums tabular-nums; }
/* The stage track fits every stage on a laptop screen */
.shell .pipeline { grid-auto-columns: minmax(78px, 1fr); }
.shell .pipe { padding-left: 4px; padding-right: 4px; }
.shell .pipe span { font-size: 12px; }
@media (max-width: 560px) { .shell .card-body { padding: 18px 16px; } .shell .content { padding: 16px 12px 36px; } }

/* ---------------------------------------------------------------- portal: progress ring instead of photos */
.proj-card { grid-template-columns: 240px minmax(0, 1fr); }
.proj-gauge { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 28px 20px;
  /* drafting-paper grid: the plan the project is being built to */
  background:
    linear-gradient(rgba(47, 122, 75, .07) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(47, 122, 75, .07) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(160deg, #f1f8ef, #e6f1e4); border-right: 1px solid var(--line-soft); }
.ring { position: relative; width: 148px; height: 148px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring-track { stroke: rgba(29, 59, 42, .1); }
.ring-fill { stroke: var(--bronze); stroke-linecap: round; stroke-dasharray: 326.73; }
.ring.is-done .ring-fill { stroke: var(--ink); }
.ring.is-delayed .ring-fill { stroke: #c0612f; }
.ring-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 500 2.6rem/1 var(--serif); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.ring-num small { font-size: .5em; margin-left: 2px; color: var(--muted); }
.ring-caption { margin: 0; text-align: center; font-size: 13px; color: var(--muted); line-height: 1.4; max-width: 18ch; }
.ring-caption strong { color: var(--ink); }
.proj-hero { grid-template-columns: minmax(0, 1fr) 260px; }
.proj-hero .proj-gauge { border-right: 0; border-left: 1px solid var(--line-soft); }
.proj-card { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.proj-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(29, 59, 42, .04), 0 22px 40px -26px rgba(29, 59, 42, .4); }

/* One orchestrated opening: cards rise in turn while each ring fills */
@media (prefers-reduced-motion: no-preference) {
  .proj-card, .proj-hero { animation: proj-rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 120ms); }
  .ring-fill { animation: ring-fill 1.3s cubic-bezier(.3, .7, .2, 1) both; animation-delay: calc(180ms + var(--i, 0) * 120ms); }
  .proj-card .ring-fill { animation-delay: calc(180ms + var(--i, 0) * 120ms); }
  .shell .stat .progress span { animation: bar-grow 1.1s cubic-bezier(.3, .7, .2, 1) .35s both; }
}
@keyframes proj-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ring-fill { from { stroke-dashoffset: 326.73; } }
@keyframes bar-grow { from { width: 0; } }

@media (max-width: 860px) {
  .proj-hero { grid-template-columns: minmax(0, 1fr); }
  .proj-hero .proj-gauge { border-left: 0; border-top: 1px solid var(--line-soft); flex-direction: row; justify-content: flex-start; padding: 18px 22px; }
  .proj-hero .ring { width: 96px; height: 96px; }
  .proj-hero .ring-num { font-size: 1.7rem; }
  .proj-hero .ring-caption { text-align: left; }
}
@media (max-width: 700px) {
  .proj-card { grid-template-columns: minmax(0, 1fr); }
  .proj-card .proj-gauge { flex-direction: row; justify-content: flex-start; gap: 18px; padding: 18px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .proj-card .ring { width: 96px; height: 96px; }
  .proj-card .ring-num { font-size: 1.7rem; }
  .proj-card .ring-caption { text-align: left; }
}


/* ---------------------------------------------------------------- portal: My Projects as one list, headings once */
.proj-list { background: var(--stone-0); border: 1px solid var(--line-soft); border-radius: 16px; box-shadow: var(--shadow-soft); overflow: hidden; }
.proj-list-head, .proj-row { display: grid; grid-template-columns: 96px minmax(0, 1.7fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .9fr) auto; align-items: center; gap: 20px; padding: 0 24px; }
.proj-list-head { padding-top: 14px; padding-bottom: 12px; font-size: 12.5px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--stone-200); background: #f9fcf8; }
.proj-row { padding-top: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line-soft); transition: background .2s; }
.proj-row:last-child { border-bottom: 0; }
.proj-row:hover { background: #f8fbf7; }
.proj-row-ring .ring { width: 84px; height: 84px; }
.proj-row-ring .ring circle { stroke-width: 11; }
.proj-row-ring .ring-num { font-size: 1.55rem; }
.proj-row-main h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 4px; font-size: 1.5rem; line-height: 1.2; }
.proj-row-main h2 a { color: var(--ink); text-decoration: none; }
.proj-row-main h2 a:hover { color: var(--bronze-dk); }
.proj-row-main h2 .badge { font-family: var(--sans); }
.proj-row-main p { margin: 0; font-size: 13.5px; color: var(--muted); }
.proj-row-main p span { margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--stone-300); }
.proj-row-cell strong { display: block; font: 500 1.15rem/1.25 var(--serif); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere; }
.proj-row-cell small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.proj-none { color: var(--stone-300); font-size: 1.2rem; }
.proj-row.is-finished .ring-fill { stroke: var(--stone-300); }
.proj-row.is-finished .ring-num, .proj-row.is-finished .proj-row-cell strong { color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) {
  .proj-row { animation: proj-rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms); }
  .proj-row .ring-fill { animation-delay: calc(160ms + var(--i, 0) * 110ms); }
}
@media (max-width: 1100px) {
  .proj-list-head, .proj-row { grid-template-columns: 84px minmax(0, 1.5fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .9fr); }
  .proj-list-head span:last-child { display: none; }
  .proj-row-open { grid-column: 2 / -1; justify-self: start; }
}
@media (max-width: 760px) {
  .proj-list-head { display: none; }
  .proj-row { grid-template-columns: 72px minmax(0, 1fr); gap: 14px 16px; padding: 18px; }
  .proj-row-ring .ring { width: 72px; height: 72px; }
  .proj-row-ring .ring-num { font-size: 1.3rem; }
  .proj-row-main h2 { font-size: 1.3rem; }
  .proj-row-main p span { display: block; margin: 2px 0 0; padding: 0; border: 0; }
  .proj-row-cell { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
  .proj-row-cell::before { content: attr(data-label); font-size: 12.5px; font-weight: 600; color: var(--muted); flex: none; }
  .proj-row-cell > * { text-align: right; }
  .proj-row-cell strong { font-size: 1.05rem; }
  .proj-row-open { grid-column: 1 / -1; justify-self: stretch; text-align: center; justify-content: center; }
}
@media (max-width: 760px) {
  .proj-row-cell { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: baseline; }
  .proj-row-cell::before { grid-row: 1 / span 2; }
  .proj-row-cell > * { grid-column: 2; text-align: right; }
}
@media (max-width: 760px) { .proj-row-cell { grid-auto-rows: auto; align-content: start; row-gap: 0; } .proj-row-cell::before { align-self: center; } .proj-row-cell small { margin-top: 0; } }

/* =====================================================================
   Responsive sizing (all screens): fluid type, calmer spacing, compact cards on phones
   ===================================================================== */

/* ---- Type that scales with the screen instead of jumping between fixed sizes */
.page-band h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); margin-bottom: 12px; }
.svc3-panel h1 { font-size: clamp(2.05rem, 1.4rem + 3vw, 3.6rem); }
.hero3 h1 { font-size: clamp(1.9rem, 1.3rem + 2.5vw, 3.3rem); margin-bottom: 18px; }
.section-head h2, .closing3-card h2 { font-size: clamp(1.7rem, 1.25rem + 1.9vw, 2.6rem); }
.svc-row-body h2 { font-size: clamp(1.45rem, 1.15rem + 1.3vw, 2.1rem); }
.intro-statement { font-size: clamp(1.25rem, 1rem + 1.15vw, 1.95rem); line-height: 1.4; }
.auth-form h1 { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.6rem); }
.auth-card h1 { font-size: clamp(1.75rem, 1.45rem + 1.1vw, 2.2rem); }
.lede, .section-head p { font-size: clamp(1rem, .95rem + .25vw, 1.1rem); }

/* ---- Spacing that shrinks on small screens */
.section { padding: clamp(48px, 30px + 4.5vw, 84px) 0; }
.section-head { margin-bottom: clamp(22px, 16px + 1.5vw, 34px); }
.page-band { padding: clamp(36px, 24px + 3vw, 56px) 0 clamp(28px, 20px + 2vw, 40px); }
.closing3 { padding: clamp(56px, 36px + 5vw, 100px) 0; }
.closing3-card { padding: clamp(28px, 18px + 3vw, 56px) clamp(22px, 14px + 3.5vw, 60px); }
.closing3-card p { margin-bottom: 24px; }
.site-footer { padding: clamp(40px, 30px + 2.5vw, 56px) 0 22px; }
.hero3-media { height: min(calc(100vh - 80px), 860px); height: min(calc(100svh - 80px), 860px); min-height: 520px; }

/* ---- Large screens: keep lines and cards at a comfortable size */
@media (min-width: 1600px) {
  .container { max-width: 1280px; }
  .shell .content { max-width: 1480px; }
}

/* ---- Tablets */
@media (max-width: 1100px) {
  .intro, .feature, .svc-body { gap: 36px; }
  .portal4 { gap: 28px; }
}

/* ---- Phones */
@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .hero3-media { height: calc(88vh - 68px); height: calc(88svh - 68px); min-height: 480px; max-height: 680px; }
  .hero3-panel { padding: 20px 18px 18px; }
  .hero3 .lede { font-size: .98rem; margin-bottom: 20px; }
  .intro-statement { margin-bottom: 4px; }

  /* Service and project cards: two per row, compact */
  .svc-cards { gap: 12px; }
  .svc-card-wrap, .svc-cards-4 .svc-card-wrap, .svc-cards-compact .svc-card-wrap { flex-basis: calc((100% - 12px) / 2); }
  .svc-card-img, .work-card .svc-card-img { aspect-ratio: 4 / 3; }
  .svc-card-body { padding: 10px 12px 12px; }
  .svc-card-name, .svc-cards-compact .svc-card-name { font-size: 1.05rem; line-height: 1.2; }
  .svc-card-sum { font-size: 12.5px; -webkit-line-clamp: 2; }
  .work-tag { font-size: 10.5px; padding: 2px 7px; margin-bottom: 5px; }
  .work-count { right: 8px; bottom: 8px; font-size: 11px; padding: 3px 8px; }
  .card-dots { left: 8px; bottom: 10px; }

  /* Portal features: a 2 x 2 grid instead of four stacked cards */
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .feat { padding: 14px 12px; }
  .feat-icon { width: 34px; height: 34px; border-radius: 10px; margin-bottom: 8px; }
  .feat h3 { font-size: 1.02rem; margin-bottom: 4px; }
  .feat p { font-size: 12.5px; line-height: 1.45; margin: 0; }

  /* How it works: tighter steps */
  .steps3 { gap: 22px; }
  .step3 { padding-left: 66px; }
  .step3-num { width: 46px; height: 46px; font-size: 1.1rem; }
  .steps3::before, .steps3::after { left: 23px; }

  /* Photo strip and service rows */
  .shot { width: 48vw; }
  .svc-list { gap: 36px; }
  .svc-row-img { aspect-ratio: 16 / 9; }
  .svc-row-sum { font-size: .95rem; margin-bottom: 14px; }

  /* Footer: two columns of links instead of one long column */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }

  /* Forms and buttons: easy to tap */
  .btn { min-height: 44px; }
  .btn-sm { min-height: 40px; padding-top: 8px; padding-bottom: 8px; }
  .chip { min-height: 38px; display: inline-flex; align-items: center; }
  .tabs a { padding-top: 12px; padding-bottom: 12px; }

  /* Signed-in pages: smaller headings and figures */
  .shell .page-head h1 { font-size: 1.6rem; }
  .shell .stat-value { font-size: 1.5rem; }
  .proj-hero-text h1 { font-size: 1.75rem; }
  .pf-thumb img, .pf-thumb { max-width: 72px; }
}
@media (max-width: 340px) {
  .svc-card-wrap, .svc-cards-4 .svc-card-wrap, .svc-cards-compact .svc-card-wrap { flex-basis: 100%; }
  .feat-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Long lists (history, sync log) scroll inside their box instead of stretching the page */
.scroll-list { max-height: 440px; overflow-y: auto; overscroll-behavior: contain; }
.scroll-list thead th { position: sticky; top: 0; background: var(--stone-0); z-index: 1; }
/* Comfortable tap areas on phones without changing how controls look */
@media (max-width: 860px) {
  .menu-toggle { min-width: 44px; min-height: 44px; justify-content: center; align-items: center; margin-left: -8px; }
  .topbar-bell { min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }
}
.hero-dot { box-sizing: content-box; padding: 10px 6px; background-clip: content-box; }
/* Services page: photo and text side by side on tablets, smaller photo; stacked only on phones */
@media (max-width: 900px) and (min-width: 681px) {
  .svc-row, .svc-row.flip { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 28px; }
  .svc-row.flip .svc-row-img { order: 2; }
  .svc-row-img { aspect-ratio: 4 / 3; }
  .svc-list { gap: 40px; }
}
@media (max-width: 680px) {
  .svc-row, .svc-row.flip { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .svc-row.flip .svc-row-img { order: 0; }
}
/* Contact page on phones: compact contact boxes, two per row where they fit */
@media (max-width: 760px) {
  .contact-cards { gap: 10px; }
  .contact-card { gap: 12px; padding: 14px; }
  .contact-icon { width: 36px; height: 36px; }
  .contact-icon .icon { width: 17px; height: 17px; }
  .contact-card strong { font-size: .98rem; overflow-wrap: break-word; }
  .contact-sub { font-size: 12.5px; }
}
@media (min-width: 520px) and (max-width: 1000px) {
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Home hero fills the screen on every device: screen height minus the header, no caps */
:root { --header-h: 81px; }   /* header height + its 1px border */
@media (max-width: 1080px) { :root { --header-h: 69px; } }
.hero3-media,
.hero3 .hero3-media { height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); min-height: 280px; max-height: none; }
/* Short screens (phones turned sideways): keep the text panel inside the hero */
@media (max-height: 560px) {
  .hero3 > .container { align-items: center; padding-bottom: 0; }
  .hero3-panel { padding: 16px 18px; }
  .hero3 h1 { font-size: clamp(1.5rem, 1rem + 2.2vw, 2.2rem); margin-bottom: 10px; }
  .hero3 .lede { display: none; }
  .hero3-controls { top: 10px; }
}

/* Amounts such as CAD $1,036,379.50 shrink to fit their box instead of running into the next one. */
.shell .stat { container-type: inline-size; min-width: 0; }
.shell .stat .stat-value { font-size: min(2.1rem, 11.9cqi); }
@media (max-width: 760px) { .shell .stat .stat-value { font-size: min(1.5rem, 11.9cqi); } }
.shell .stat .stat-value.stat-pair { font-size: min(1.2rem, 11.9cqi); }
.stat-pair span { white-space: nowrap; }

/* Payment stages */
.stage-list { list-style: none; margin: 0; padding: 0; }
.stage-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 6px 16px; padding: 18px 22px; border-top: 1px solid var(--line-soft, var(--stone-200)); align-items: start; }
.stage-row:first-child { border-top: 0; }
.stage-num { width: 30px; height: 30px; border-radius: 50%; background: var(--green-bg); color: var(--ink); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.stage-title { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; overflow-wrap: anywhere; }
.stage-main { min-width: 0; overflow-wrap: anywhere; }
.stage-amount { text-align: right; white-space: nowrap; display: grid; }
.stage-actions { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.stage-actions:empty { display: none; }
.stage-block { color: #8a5200; margin-top: 4px; }
.stage-note { margin: 8px 0 0; }
.stage-row.is-off { opacity: .6; }
@media (max-width: 600px) { .stage-row { grid-template-columns: 30px minmax(0, 1fr); padding: 16px; } .stage-amount { grid-column: 2; text-align: left; } .stage-actions { grid-column: 1 / -1; } }
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; }

/* Milestones */
.ms-row .stage-num svg { width: 15px; height: 15px; }
.ms-photos { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; max-width: 460px; }
.ms-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.stage-start { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.stage-start .form-row { align-items: center; gap: 10px; }

/* Logo */
.site-header .brand-logo { height: 62px; max-width: 110px; }
.site-footer .brand-logo { height: 76px; max-width: 128px; }
.shell .sidebar .brand-logo { height: 58px; max-width: 110px; }
.shell .sidebar .brand-logo.on-dark { background: none; padding: 0; border-radius: 0; }
.shell .sidebar .brand-logo + .brand-text .brand-tag { font-size: 13px; color: #fff; }
@media (max-width: 1080px) { .site-header .brand-logo { height: 54px; } }

/* Staff top bar: the search box shares the row with the website button, which is icon only on phones. */
.shell.admin .topbar-search { min-width: 0; }
@media (max-width: 600px) { .shell.admin .topbar-site { width: 44px; padding: 0; justify-content: center; } .shell.admin .topbar-site > span { display: none; } }

/* Home hero (v4): copy on the left, photo fading in from the right, feature strip and a dark facts band. */
.hero4 { position: relative; overflow: hidden; background: var(--stone-50); }
.hero4-media { position: absolute; top: 0; right: 0; bottom: 0; width: 64%; background: var(--stone-100);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 16%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 16%, #000 38%); }
.hero4-media .hero-slide { position: absolute; inset: 0; margin: 0; }
.hero4-media .hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero4-inner { position: relative; z-index: 2; display: flex; align-items: center; min-height: clamp(540px, calc(100vh - var(--header-h, 80px) - 130px), 760px); min-height: clamp(540px, calc(100svh - var(--header-h, 80px) - 130px), 760px); padding-top: 48px; padding-bottom: 56px; }
.hero4-copy { max-width: 560px; }
.hero4-eyebrow { margin: 0 0 22px; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.hero4-eyebrow span { margin: 0 .5em; color: var(--bronze); }
.hero4-title { margin: 0 0 26px; font-size: clamp(2.8rem, 5.4vw, 5rem); line-height: 1; letter-spacing: -.02em; }
.hero4-title .strong { font-family: var(--sans); font-weight: 800; color: var(--ink); }
.hero4-title .soft { font-family: var(--serif); font-weight: 400; font-size: 1.12em; color: var(--ink); }
.hero4-lede { margin: 0 0 32px; max-width: 46ch; font-size: 1.08rem; line-height: 1.7; color: var(--ink-2); }
.hero4-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero4-btn { display: inline-flex; align-items: center; gap: 12px; }
.hero4-btn svg { width: 19px; height: 19px; }
.hero4-btn-ghost { background: rgba(255, 255, 255, .7); border: 1px solid var(--ink); color: var(--ink); }
.hero4-btn-ghost:hover { background: var(--stone-0); }
.hero4-features { background: var(--stone-0); border-bottom: 1px solid var(--stone-200); }
.feat4 { list-style: none; margin: 0; padding: 30px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feat4 li { display: flex; gap: 16px; align-items: flex-start; padding: 6px 26px; border-left: 1px solid var(--stone-200); }
.feat4 li:first-child { border-left: 0; padding-left: 0; }
.feat4 svg { flex: none; width: 40px; height: 40px; color: var(--ink); }
.feat4 strong { display: block; font-size: 15.5px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.feat4 span { display: block; font-size: 14px; line-height: 1.55; color: var(--muted); }
.stats4 { background: var(--ink); color: #fff; }
.stats4-list { list-style: none; margin: 0; padding: 46px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats4-list li { text-align: center; padding: 4px 16px; border-left: 1px solid rgba(255, 255, 255, .22); }
.stats4-list li:first-child { border-left: 0; }
.stats4-list strong { display: block; font: 800 clamp(2.2rem, 3.6vw, 3.1rem)/1.05 var(--sans); letter-spacing: -.02em; color: #fff; }
.stats4-list span { display: block; margin-top: 8px; font-size: 14.5px; color: rgba(255, 255, 255, .82); }
/* Wide and zoomed-out screens: the photo starts just after the text column instead of a fixed share of the
   window, so it never slides under the headline or turns into a thin cropped strip. */
@media (min-width: 1101px) {
  .hero4-media { width: auto; left: calc(max(24px, (100% - 1240px) / 2 + 24px) + 470px); }
}
/* Very wide or zoomed-out screens: the photo also stops at the right edge of the page content, as a rounded
   picture lined up with the sections below, instead of stretching into a thin strip to the window edge. */
@media (min-width: 1600px) {
  .hero4-media { left: calc((100% - 1280px) / 2 + 24px + 530px); right: calc((100% - 1280px) / 2 + 24px); top: 40px; bottom: 40px; border-radius: 22px; overflow: hidden;
    -webkit-mask-image: none; mask-image: none; box-shadow: var(--shadow); }
}
@media (max-width: 1100px) {
  .hero4-media { width: 56%; }
  .hero4-copy { max-width: 470px; }
  .feat4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .feat4 li:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats4-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
  .stats4-list li:nth-child(3) { border-left: 0; }
}
@media (max-width: 860px) {
  .hero4-media { position: relative; width: 100%; height: 58vw; min-height: 240px; max-height: 420px;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
  .hero4-inner { min-height: 0; padding-top: 8px; padding-bottom: 40px; }
  .hero4-title { font-size: clamp(2.4rem, 10vw, 3.4rem); }
}
@media (max-width: 560px) {
  .feat4 { grid-template-columns: 1fr; padding: 24px 0; row-gap: 18px; }
  .feat4 li { border-left: 0; padding: 0; }
  .stats4-list { padding: 34px 0; }
  .stats4-list li { padding: 4px 8px; }
  .stats4-list span { font-size: 13px; }
  .hero4-btn { flex: 1 1 100%; justify-content: center; }
  .hero4-eyebrow { font-size: 11px; letter-spacing: .1em; }
  .hero4-eyebrow span { margin: 0 .3em; }
}

/* Services page cards (v5): photo on top, coloured tag, bold title, summary and a footer line. */
.svc5-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.svc5 { flex: 0 1 calc((100% - 56px) / 3); display: flex; flex-direction: column; background: var(--stone-0); border-radius: 16px; overflow: hidden;
  color: inherit; text-decoration: none !important; box-shadow: 0 10px 30px -12px rgba(29, 59, 42, .28); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.svc5-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--stone-200); }
.svc5-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease); }
.svc5-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; background: linear-gradient(180deg, var(--stone-0) 0%, var(--stone-50) 100%); }
.svc5-tag { align-self: flex-start; padding: 4px 11px; border-radius: 99px; font-size: 12px; font-weight: 600; color: #fff; line-height: 1.4; }
.svc5-tag-green { background: linear-gradient(135deg, #3f9a62, #2f7a4b); }
.svc5-tag-amber { background: linear-gradient(135deg, #e0a347, #c27f1f); }
.svc5-tag-blue { background: linear-gradient(135deg, #4d8fd6, #2f6bb3); }
.svc5-tag-indigo { background: linear-gradient(135deg, #7a74d0, #5550a8); }
.svc5-tag-red { background: linear-gradient(135deg, #db5a4f, #b83a30); }
.svc5-name { display: block; margin-top: 12px; font: 700 1.35rem/1.25 var(--sans); letter-spacing: -.01em; color: var(--ink); }
.svc5-sum { display: block; margin-top: 8px; flex: 1; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.svc5-foot { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.svc5-badge { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bronze-soft); color: var(--bronze); border: 2px solid var(--stone-0); box-shadow: 0 0 0 1px var(--bronze-line); }
.svc5-badge .icon { width: 18px; height: 18px; }
.svc5-meta { display: block; flex: 1; min-width: 0; line-height: 1.35; }
.svc5-meta strong { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.svc5-meta span { display: block; font-size: 13px; color: var(--muted); }
.svc5-go { flex: none; display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink); transition: background .3s, color .3s, transform .3s var(--ease); }
.svc5-go svg { width: 18px; height: 18px; }
.svc5:hover, .svc5:focus-visible { transform: translateY(-6px); box-shadow: 0 24px 44px -18px rgba(29, 59, 42, .4); }
.svc5:hover .svc5-img img, .svc5:focus-visible .svc5-img img { transform: scale(1.05); }
.svc5:hover .svc5-go, .svc5:focus-visible .svc5-go { background: var(--ink); color: #fff; transform: translateX(2px); }
.svc5:focus-visible { outline: 3px solid var(--bronze); outline-offset: 3px; }
@media (max-width: 1000px) { .svc5 { flex-basis: calc((100% - 28px) / 2); } }
@media (max-width: 640px) { .svc5-grid { gap: 18px; } .svc5 { flex-basis: 100%; } }
/* Smaller cards: half the width and about 30% shorter than before. */
.svc5-grid { gap: 22px; }
.svc5 { flex: 0 0 calc((100% - 88px) / 5); border-radius: 13px; }
.svc5-img { aspect-ratio: 4 / 3; }
.svc5-body { padding: 14px 16px 16px; }
.svc5-tag { padding: 3px 10px; font-size: 11px; }
.svc5-name { margin-top: 0; font-size: 17px; line-height: 1.25; }
.svc5-sum { margin-top: 6px; font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.svc5:hover, .svc5:focus-visible { transform: translateY(-4px); }
@media (max-width: 1100px) { .svc5 { flex-basis: calc((100% - 44px) / 3); } }
@media (max-width: 700px) { .svc5-grid { gap: 14px; } .svc5 { flex-basis: calc((100% - 14px) / 2); } }
@media (prefers-reduced-motion: reduce) { .svc5, .svc5-img img, .svc5-go { transition: none; } .svc5:hover { transform: none; } .svc5:hover .svc5-img img { transform: none; } }

/* Home "Recent projects": stacked panels that pin while scrolling. */
.stack { position: relative; }
.stack-card { position: sticky; top: calc(var(--header-h, 80px) + 20px + var(--i) * 14px); height: min(440px, calc(100vh - var(--header-h, 80px) - 80px)); height: min(440px, calc(100svh - var(--header-h, 80px) - 80px)); margin-bottom: 32px; }
/* On larger screens the "Recent projects" heading stays in view and the panels stack just below it. */
@media (min-width: 901px) and (min-height: 760px) {
  .stack-section .section-head { position: sticky; top: var(--header-h, 80px); z-index: 2; max-width: none; margin-bottom: 0; padding: 22px 0 26px; background: var(--stone-50); }
  .stack-section .section-head p { max-width: 680px; }
  .stack-section { --stack-card-h: min(440px, calc(100vh - var(--header-h, 80px) - var(--stack-head, 200px) - 70px)); --stack-card-h: min(440px, calc(100svh - var(--header-h, 80px) - var(--stack-head, 200px) - 70px)); }
  .stack-section .stack-card { top: calc(var(--header-h, 80px) + var(--stack-head, 200px) + var(--i) * 14px); height: var(--stack-card-h); }
  /* The heading's pinned area ends where the last panel starts, so once the last panel lands
     the heading and the panels scroll away together instead of the panel sliding under the heading. */
  .stack-section .stack-wrap { display: flow-root; }   /* keeps the negative margin inside, so the pinned area really ends there */
  .stack-section .stack { margin-bottom: calc(-1 * var(--stack-card-h)); }
  .stack-section .stack-spacer { height: var(--stack-card-h); }
}
.stack-card:last-child { margin-bottom: 0; }
.stack-card-inner { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 0; padding: 0; overflow: hidden; border-radius: 26px;
  background: var(--ink); color: #fff; box-shadow: 0 -10px 40px -18px rgba(14, 28, 20, .45); transform-origin: 50% 0; will-change: transform; }
.stack-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 40px clamp(32px, 4.5vw, 64px); }
.stack-copy > * { max-width: 30rem; }
.stack-num { font-size: 13px; font-weight: 600; letter-spacing: .12em; color: rgba(255, 255, 255, .6); }
.stack-tag { align-self: flex-start; margin: 0 0 18px; padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .88); }
.stack-title { margin: 0; font: 700 clamp(1.7rem, 2.7vw, 2.5rem)/1.06 var(--sans); letter-spacing: -.025em; color: #fff; }

.stack-sum { margin: 16px 0 0; max-width: 42ch; font-size: 15.5px; line-height: 1.65; color: rgba(255, 255, 255, .8); }
.stack-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); }
.stack-link { font-size: 14.5px; font-weight: 600; color: #fff; text-decoration: none !important; padding-bottom: 2px; border-bottom: 1px solid rgba(255, 255, 255, .45); transition: border-color .2s; }
.stack-link:hover { border-color: #fff; }
.stack-link:focus-visible { outline: 3px solid var(--bronze-line); outline-offset: 3px; }
.stack-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 99px; background: #fff; color: var(--ink); font-weight: 700; font-size: 14.5px; text-decoration: none !important; transition: background .25s; }
.stack-btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.stack-btn:hover { background: var(--bronze-soft); }
.stack-btn:hover svg { transform: translateX(3px); }
.stack-btn:focus-visible { outline: 3px solid var(--bronze-line); outline-offset: 3px; }
.stack-count { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.stack-count .icon { width: 16px; height: 16px; }
.stack-img { position: relative; display: block; min-height: 0; height: 100%; overflow: hidden; background: rgba(255, 255, 255, .08); }
.stack-img .card-dots { left: auto; right: 20px; bottom: 18px; }
.stack-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease); }
.stack-img:hover img { transform: scale(1.04); }
@media (max-width: 900px) {
  .stack-card { height: min(560px, calc(100vh - var(--header-h, 69px) - 40px)); height: min(560px, calc(100svh - var(--header-h, 69px) - 40px)); top: calc(var(--header-h, 69px) + 12px + var(--i) * 10px); margin-bottom: 24px; }
  .stack-card-inner { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; border-radius: 22px; }
  .stack-img { order: -1; }
  .stack-title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .stack-tag { margin-bottom: 10px; }
  .stack-actions { margin-top: 14px; padding-top: 14px; gap: 10px 20px; }
  .stack-sum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 10px; font-size: 14.5px; }
  .stack-actions { margin-top: 16px; }
  .stack-copy { padding: 18px 20px 20px; justify-content: center; }
  .stack-num { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .stack-img img, .stack-btn svg { transition: none; } }

/* ------------------------------------------------------------------ Glass style (public website)
   Cards and boxes only: frosted, see-through white panels with a bright edge.
   Portal and admin pages are not affected. */
body.public {
  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, .66) 0%, rgba(255, 255, 255, .26) 100%);
  --glass-edge: rgba(255, 255, 255, .85);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(255, 255, 255, .3), 0 18px 40px -24px rgba(29, 59, 42, .42);
  --glass-blur: blur(14px) saturate(140%);
}

/* The glass panels. */
body.public :is(.card, .contact-card, .mv-card, .promise, .svc-list-cta, .svc5, .signin-gate, .svc-card) {
  background: var(--glass-bg);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
body.public .promise { border-left: 3px solid var(--bronze); }
body.public .mv-card { border-top: 3px solid var(--bronze); }
body.public .svc5-body { background: transparent; }
body.public a.contact-card:hover, body.public a.contact-card:focus-visible { border-color: var(--glass-edge); background: linear-gradient(135deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .4)); }
body.public .svc5:hover, body.public .svc5:focus-visible { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 26px 46px -22px rgba(29, 59, 42, .5); }

/* Browsers without blur get a more solid panel so text stays easy to read. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body.public :is(.card, .contact-card, .mv-card, .promise, .svc-list-cta, .svc5, .signin-gate, .svc-card) { background: rgba(255, 255, 255, .88); }
}

/* Home "What we build": bento grid. First service is the large tile; the rest fill around it. */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 240px; gap: 18px; }
.bento-tile { position: relative; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; border-radius: 20px;
  background: var(--ink); color: #fff; text-decoration: none !important; box-shadow: var(--shadow); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.bento-0 { grid-column: span 2; grid-row: span 2; }
.bento-tile { container-type: inline-size; }
/* Narrow tiles (e.g. the quote page's slimmer column): smaller text so names and summaries fit. */
@container (max-width: 240px) {
  .bento-body { padding: 16px 16px; }
  .bento-name { font-size: 1.02rem; }
  .bento-sum { font-size: 12.5px; margin-top: 4px; }
  .bento-more { margin-top: 8px; font-size: 12.5px; }
}
.bento-tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.bento-tile::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14, 28, 20, 0) 35%, rgba(14, 28, 20, .55) 68%, rgba(14, 28, 20, .88) 100%); }
.bento-body { display: block; width: 100%; padding: 20px 22px; }
.bento-name { display: block; font: 700 1.2rem/1.2 var(--sans); color: #fff; }
.bento-0 .bento-name { font: 500 clamp(1.8rem, 2.8vw, 2.4rem)/1.1 var(--serif); }
.bento-sum { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .86);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bento-0 .bento-sum { font-size: 15px; max-width: 44ch; -webkit-line-clamp: 3; }
.bento-more { display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 700; color: #fff; padding-bottom: 2px; border-bottom: 1px solid rgba(255, 255, 255, .7); }
.bento-more::after { content: " \2192"; display: inline-block; transition: transform .3s var(--ease); }
.bento-tile:hover, .bento-tile:focus-visible { transform: translateY(-4px); box-shadow: 0 26px 46px -24px rgba(29, 59, 42, .55); }
.bento-tile:hover img, .bento-tile:focus-visible img { transform: scale(1.06); }
.bento-tile:hover .bento-more::after { transform: translateX(4px); }
.bento-tile:focus-visible { outline: 3px solid var(--bronze); outline-offset: 3px; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 320px; grid-auto-rows: 220px; } .bento-0 { grid-column: span 2; grid-row: span 1; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; grid-template-rows: 300px; grid-auto-rows: 230px; gap: 14px; } .bento-0 { grid-column: auto; } }
@media (prefers-reduced-motion: reduce) { .bento-tile, .bento-tile img, .bento-more::after { transition: none; } .bento-tile:hover, .bento-tile:hover img { transform: none; } }

/* Very wide screens: lower sections line up with the page content instead of stretching to the window edges. */
@media (min-width: 1600px) {
  .marquee { max-width: 1232px; margin: 0 auto; }
  .closing3 { max-width: 1232px; margin: 88px auto; border-radius: 22px; box-shadow: var(--shadow); }
  .site-footer { background: radial-gradient(circle at calc(50% - 560px) 22%, rgba(47, 122, 75, .18), transparent 420px),
    radial-gradient(circle at calc(50% - 300px) 92%, rgba(127, 178, 140, .27), transparent 460px), var(--stone-100); }
}

/* Wide or zoomed-out screens: the photo banner (Services, Our work, Contact) becomes a rounded card
   the same width as the page content, like the home hero, instead of running to the window edges. */
@media (min-width: 1600px) {
  .page-banner { max-width: 1232px; margin: 28px auto 0; border-radius: 22px; box-shadow: var(--shadow); }
  .page-banner .page-hero-inner { padding: 0 48px; }
}

/* Sign in / sign up on wide or zoomed-out screens: keep the form and photo inside the page width
   (photo as a rounded card, same as the other pages). Normal screens keep the full-height split. */
@media (min-width: 1600px) {
  .auth-split { max-width: 1232px; margin: 28px auto 56px; gap: 56px; min-height: min(calc(100vh - 165px), 760px); }
  .auth-form { justify-content: flex-start; padding: 44px 0; }
  .auth-panel { border-radius: 22px; box-shadow: var(--shadow); }
}

/* ---- Phones and tablets: final sizing fixes */
@media (max-width: 860px) {
  /* 16px text in form boxes so iPhones don't zoom the page in when a box is tapped. */
  body.public input:not([type=checkbox]):not([type=radio]):not([type=file]), body.public select, body.public textarea { font-size: 16px; }
}
@media (max-width: 640px) {
  /* Our work filter: one swipeable row instead of five stacked rows of buttons. */
  .work-filter { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 2px 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .work-filter::-webkit-scrollbar { display: none; }
  .work-filter > * { flex: 0 0 auto; white-space: nowrap; }
}
/* Leave room under the footer's last line so the back-to-top button never covers the credit link. */
@media (max-width: 1100px) { .site-footer { padding-bottom: 76px; } }

/* ---- Logo loading screen (first page of a visit only; skipped without JS or with reduced motion) */
.loader { display: none; }
.js:not(.no-loader) .loader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--stone-50);
  transition: opacity .5s var(--ease), visibility .5s; animation: loader-failsafe .4s 4.5s forwards; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader-inner { display: grid; justify-items: center; gap: 22px; animation: loader-in .6s var(--ease) both; }
.loader-inner img { width: 150px; height: auto; }
.loader-bar { position: relative; width: 140px; height: 3px; border-radius: 3px; background: var(--stone-200); overflow: hidden; }
.loader-bar span { position: absolute; inset: 0; width: 40%; border-radius: 3px; background: var(--ink); animation: loader-slide 1.1s ease-in-out infinite; }
@keyframes loader-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes loader-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; } }   /* hides itself even if the script never runs */
@media (max-width: 640px) { .loader-inner img { width: 120px; } }

/* ---- Smooth scrolling (Lenis). The script does the easing, so the browser's own smooth scroll is turned off while it runs. */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
/* Smallest phones (iPhone SE, 375px and narrower): keep the hero tagline on one line. */
@media (max-width: 380px) { .hero4-eyebrow { font-size: 10.5px; letter-spacing: .07em; white-space: nowrap; } .hero4-eyebrow span { margin: 0 .25em; } }

/* ---- Portal preview fixes */
/* Panels share one grid cell: the preview stays the height of the tallest panel when tabs switch. */
.pmock-body { display: grid; }
.pmock-body > .pmock-panel { grid-area: 1 / 1; min-height: 0; }
.js .pmock-body > .pmock-panel[hidden] { display: grid; visibility: hidden; pointer-events: none; }
.mock-row-text { min-width: 0; }
.mock-date { white-space: nowrap; align-self: flex-start; }
.mock-thumbs { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.mock-thumbs img { width: 46px; height: 34px; object-fit: cover; border-radius: 6px; background: var(--stone-100); }
.mock-thumbs em { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 4px; }
.feat:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
@media (max-width: 560px) {
  .pmock-head, .pmock-panel { padding-left: 14px; padding-right: 14px; }
  .pmock .mock-stat:last-child { grid-column: 1 / -1; }
  .pmock .mock-row { flex-wrap: wrap; row-gap: 8px; }
  .pmock .mock-row-text { flex: 1 1 60%; }
  .pmock-amt { flex-direction: column; align-items: flex-end; gap: 5px; margin-left: auto; }
  .pmock-tabs { padding: 0 8px; } .pmock-tabs button { padding: 10px 10px; }
}

/* ---- Home hero: fit every screen ---------------------------------------------------------------
   Goal on every device: the headline and the "Request a quote" button are visible without scrolling. */

/* Phones held upright: a shorter photo that scales with the screen height, tighter spacing,
   and the two buttons side by side, so everything fits on the first screen. */
@media (max-width: 560px) {
  .hero4-media { height: min(56vw, 30vh); height: min(56vw, 30svh); min-height: 150px; }
  .hero4-inner { padding-top: 4px; padding-bottom: 28px; }
  .hero4-eyebrow { margin-bottom: 12px; }
  .hero4-title { font-size: clamp(2rem, 9.4vw, 2.9rem); margin-bottom: 14px; }
  .hero4-lede { font-size: .98rem; line-height: 1.55; margin-bottom: 20px; }
  .hero4-actions { gap: 10px; flex-wrap: nowrap; }
  .hero4-btn { flex: 1 1 0; min-width: 0; padding-left: 10px; padding-right: 10px; font-size: 15px; gap: 8px; white-space: nowrap; }
}
/* Very short or very narrow phones (iPhone SE and similar). */
@media (max-width: 560px) and (max-height: 700px) {
  .hero4-media { height: min(50vw, 26vh); height: min(50vw, 26svh); min-height: 130px; }
  .hero4-title { font-size: clamp(1.85rem, 8.6vw, 2.5rem); }
  .hero4-lede { font-size: .93rem; margin-bottom: 16px; }
}
@media (max-width: 340px) {
  .hero4-actions { flex-wrap: wrap; } .hero4-btn { flex: 1 1 100%; }
  .hero4-btn svg { display: none; }
}

/* Phones held sideways (and other very short screens): text on the left, photo on the right, sized to the screen,
   instead of a full-screen photo that hides the headline. */
@media (orientation: landscape) and (max-height: 540px) {
  .hero4-media { position: absolute; top: 0; right: 0; bottom: 0; left: auto; width: 44%; height: auto; min-height: 0; max-height: none; border-radius: 0; box-shadow: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .6) 18%, #000 40%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .6) 18%, #000 40%); }
  .hero4-inner { min-height: calc(100vh - var(--header-h, 69px)); min-height: calc(100svh - var(--header-h, 69px)); padding-top: 14px; padding-bottom: 14px; }
  .hero4-copy { max-width: 58%; }
  .hero4-eyebrow { margin-bottom: 8px; font-size: 10.5px; }
  .hero4-title { font-size: clamp(1.7rem, 4.6vw, 2.5rem); margin-bottom: 10px; }
  .hero4-lede { font-size: .88rem; line-height: 1.5; margin-bottom: 14px; max-width: 52ch; }
  .hero4-actions { flex-wrap: nowrap; gap: 10px; }
  .hero4-btn { flex: 0 0 auto; padding: 10px 16px; font-size: 14px; }
}

/* Short laptop / desktop windows: smaller headline and spacing so the buttons stay on screen. */
@media (min-width: 861px) and (max-height: 720px) and (min-height: 541px) {
  .hero4-inner { min-height: calc(100vh - var(--header-h, 80px) - 40px); min-height: calc(100svh - var(--header-h, 80px) - 40px); padding-top: 24px; padding-bottom: 28px; }
  .hero4-eyebrow { margin-bottom: 14px; }
  .hero4-title { font-size: clamp(2.4rem, 4.4vw, 3.8rem); margin-bottom: 16px; }
  .hero4-lede { margin-bottom: 22px; }
}
/* The smallest phones (320 × 568, e.g. the first iPhone SE). */
@media (max-width: 360px) and (max-height: 600px) {
  .hero4-media { height: 21vh; height: 21svh; min-height: 110px; }
  .hero4-eyebrow { margin-bottom: 8px; }
  .hero4-title { font-size: 1.75rem; margin-bottom: 10px; }
  .hero4-lede { font-size: .88rem; line-height: 1.5; margin-bottom: 14px; }
}
/* Phones sideways with the browser bars showing (Safari leaves ~340px of height). */
@media (orientation: landscape) and (max-height: 400px) {
  .hero4-inner { padding-top: 8px; padding-bottom: 8px; }
  .hero4-eyebrow { display: none; }
  .hero4-title { font-size: clamp(1.5rem, 4vw, 2.1rem); margin-bottom: 8px; }
  .hero4-lede { font-size: .84rem; line-height: 1.45; margin-bottom: 12px; }
  .hero4-btn { padding: 9px 14px; font-size: 13.5px; }
}

/* ---- Home hero fills the whole first screen on every device (the feature strip starts below it). */
@media (min-width: 861px) {
  .hero4-inner { min-height: calc(100vh - var(--header-h, 80px)); min-height: calc(100svh - var(--header-h, 80px)); }
}
@media (min-width: 861px) and (max-height: 720px) and (min-height: 541px) {
  .hero4-inner { min-height: calc(100vh - var(--header-h, 80px)); min-height: calc(100svh - var(--header-h, 80px)); }
}
/* Phones and tablets held upright: photo on top grows to take whatever space the text leaves. */
@media (max-width: 860px) and (orientation: portrait) {
  .hero4 { display: flex; flex-direction: column; min-height: calc(100vh - var(--header-h, 69px)); min-height: calc(100svh - var(--header-h, 69px)); }
  .hero4-media { flex: 1 0 auto; max-height: none; }
  .hero4-inner { flex: none; }
}
/* Wider screens held upright (iPad Pro, portrait monitors): stack like a phone, photo on top filling the spare height. */
@media (min-width: 861px) and (orientation: portrait) {
  .hero4 { display: flex; flex-direction: column; min-height: calc(100vh - var(--header-h, 80px)); min-height: calc(100svh - var(--header-h, 80px)); }
  .hero4-media { position: relative; top: auto; right: auto; bottom: auto; left: auto; width: 100%; height: auto; min-height: 320px; max-height: none; flex: 1 0 auto; border-radius: 0; box-shadow: none;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%); }
  .hero4-inner { flex: none; min-height: 0; padding-top: 8px; padding-bottom: 48px; }
  .hero4-copy { max-width: 640px; }
}
/* Very large landscape monitors: the rounded photo keeps a sensible height, centred in the full-screen hero. */
@media (min-width: 1600px) and (orientation: landscape) {
  .hero4-media { top: 50%; bottom: auto; height: min(calc(100% - 80px), 820px); transform: translateY(-50%); }
}
/* First-generation iPhone SE (320 × 568). */
@media (max-width: 340px) and (max-height: 600px) {
  .hero4-media { height: 16vh; height: 16svh; min-height: 90px; }
  .hero4-lede { font-size: .85rem; margin-bottom: 12px; }
}

/* ---- Custom dropdown (computers): the closed box matches the text fields; the open list is a soft card. */
.cselect { position: relative; }
.cselect-native { position: absolute !important; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.cselect-btn { display: block; width: 100%; text-align: left; padding: 11px 42px 11px 13px; border: 1px solid var(--stone-300); border-radius: var(--radius-sm);
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7a4b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px 16px;
  font: 15px/1.4 var(--sans); color: var(--ink); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: border-color .2s, box-shadow .2s, background-color .2s; }
body.public .cselect-btn { font-size: 16px; }
.cselect-btn:hover:not(:disabled) { border-color: var(--bronze-line); background-color: var(--hover); }
.cselect-btn:focus-visible, .cselect.is-open .cselect-btn { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(47, 122, 75, .2); background-color: var(--field); }
.cselect.is-open .cselect-btn { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7a4b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 15l6-6 6 6'/%3E%3C/svg%3E"); }
.cselect-btn.is-placeholder { color: var(--muted); }
.cselect-btn.is-invalid { border-color: #b4483c; box-shadow: 0 0 0 3px rgba(180, 72, 60, .15); }
.cselect-btn:disabled { background-color: var(--stone-100); color: var(--muted); cursor: not-allowed; }
.cselect-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; max-height: 280px; overflow-y: auto;
  background: var(--stone-0); border: 1px solid var(--stone-200); border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(29, 59, 42, .35), 0 2px 6px rgba(29, 59, 42, .06);
  animation: cselect-in .16s var(--ease); overscroll-behavior: contain; }
.cselect.drop-up .cselect-list { top: auto; bottom: calc(100% + 6px); }
.cselect-list[hidden] { display: none; }
.cselect-list li { position: relative; padding: 10px 12px 10px 36px; border-radius: 8px; font-size: 15px; color: var(--ink-2); cursor: pointer; line-height: 1.35; }
.cselect-list li.is-active { background: var(--hover); color: var(--ink); }
.cselect-list li[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.cselect-list li[aria-selected="true"]::before { content: ""; position: absolute; left: 13px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7a4b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / contain; }
.cselect-list li[aria-disabled="true"] { color: var(--muted); cursor: default; opacity: .6; }
@keyframes cselect-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cselect-list { animation: none; } }

/* ---- Home: hero + feature strip fill the first screen together (computers and tablets; phones keep a full-screen hero).
   --feat-h is the strip's measured height (set by site.js); 130px until then. */
@media (min-width: 861px) and (orientation: landscape) and (min-height: 541px) {
  .hero4-inner { min-height: calc(100vh - var(--header-h, 80px) - var(--feat-h, 130px)); min-height: calc(100svh - var(--header-h, 80px) - var(--feat-h, 130px)); }
}
@media (min-width: 561px) and (orientation: portrait) {
  .hero4 { min-height: calc(100vh - var(--header-h, 69px) - var(--feat-h, 160px)); min-height: calc(100svh - var(--header-h, 69px) - var(--feat-h, 160px)); }
}
/* Upright tablets: the photo starts smaller (it still grows into any spare room) so the strip fits too. */
@media (min-width: 561px) and (max-width: 860px) and (orientation: portrait) {
  .hero4-media { height: min(40vw, 24vh); height: min(40vw, 24svh); min-height: 220px; }
}
/* Sideways tablets and laptops: the strip on one row, a little more compact. */
@media (min-width: 861px) and (orientation: landscape) {
  .feat4 { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 0; padding: 22px 0; }
  .feat4 li { padding: 4px 18px; } .feat4 li:nth-child(3) { border-left: 1px solid var(--stone-200); padding-left: 18px; } .feat4 li:first-child { padding-left: 0; }
  .feat4 svg { width: 34px; height: 34px; }
}
@media (min-width: 861px) and (max-width: 1100px) and (orientation: landscape) { .feat4 span { font-size: 13px; } .feat4 strong { font-size: 14.5px; } }
/* Laptop screens up to 800px tall: compact hero text so hero + strip fit. */
@media (min-width: 861px) and (max-height: 800px) and (min-height: 541px) {
  .hero4-inner { padding-top: 18px; padding-bottom: 20px; }
  .hero4-eyebrow { margin-bottom: 12px; }
  .hero4-title { font-size: clamp(2.2rem, 3.9vw, 3.4rem); margin-bottom: 14px; }
  .hero4-lede { font-size: 1rem; line-height: 1.6; margin-bottom: 20px; }
}
/* Upright tablets: a tighter two-row strip and a little less space under the buttons. */
@media (min-width: 561px) and (max-width: 860px) and (orientation: portrait) {
  .feat4 { padding: 16px 0; row-gap: 12px; }
  .feat4 li { gap: 12px; } .feat4 svg { width: 30px; height: 30px; }
  .feat4 strong { font-size: 14.5px; margin-bottom: 2px; } .feat4 span { font-size: 13px; line-height: 1.45; }
  .hero4-inner { padding-bottom: 22px; }
  .hero4-media { min-height: 180px; }
}
/* Very short laptop windows (about 600px tall). */
@media (min-width: 861px) and (max-height: 640px) and (min-height: 541px) {
  .hero4-inner { padding-top: 10px; padding-bottom: 12px; }
  .hero4-lede { margin-bottom: 16px; }
  .feat4 { padding: 16px 0; }
}
/* Phones: smaller hero buttons, sized to their text instead of stretching across the screen. */
@media (max-width: 560px) {
  .hero4-actions { flex-wrap: wrap; gap: 10px; }
  .hero4-btn { flex: 0 0 auto; padding: 10px 16px; font-size: 14px; gap: 7px; min-height: 42px; }
  .hero4-btn svg { display: inline-block; width: 16px; height: 16px; }
}
@media (max-width: 380px) { .hero4-btn { padding: 10px 13px; font-size: 13.5px; gap: 6px; } .hero4-btn svg { width: 15px; height: 15px; } }
@media (max-width: 340px) { .hero4-btn { padding: 9px 12px; font-size: 13.5px; } .hero4-btn svg { display: none; } }

/* Stacked hero (upright phones/tablets): the text column uses the full page width so it lines up with the strip below. */
@media (orientation: portrait) { .hero4-inner { width: 100%; } }

/* Phones held upright: headline, text and buttons first, the photo underneath (fading into the text above it). */
@media (max-width: 560px) and (orientation: portrait) {
  .hero4-inner { order: -1; padding-top: 22px; padding-bottom: 18px; }
  .hero4-media { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%); }
}

/* ---- Request a quote form */
/* Step headings: every step (including 1) gets the same round number; the title (and "optional") stay together. */
.quote-wrap h3.step-h { display: flex; gap: 12px; align-items: center; font-size: 1.08rem; margin-bottom: 12px; }
.quote-wrap h3.step-h .n { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font: 700 14px/1 var(--sans);
  display: inline-flex; align-items: center; justify-content: center; }
.quote-wrap h3.step-h .muted { font-weight: 400; margin-left: 4px; }
/* Service choices: three per row on wider screens (so five cards make a neat 3 + 2), one per row on phones. */
@media (min-width: 700px) { .quote-wrap .service-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 699px) { .quote-wrap .service-pick { grid-template-columns: 1fr; } }
/* File picker: a dashed drop area with a button in the site's style instead of the browser's grey button. */
input[type=file].file-drop { display: block; width: 100%; padding: 18px; border: 1.5px dashed var(--stone-300); border-radius: 10px; background: var(--stone-0);
  font: 14px/1.4 var(--sans); color: var(--muted); cursor: pointer; transition: border-color .2s, background .2s; }
input[type=file].file-drop:hover, input[type=file].file-drop:focus-visible { border-color: var(--bronze); background: var(--hover); outline: none; }
input[type=file].file-drop::file-selector-button { margin-right: 14px; padding: 9px 16px; border: 1px solid var(--ink); border-radius: var(--radius-sm); background: var(--stone-0);
  color: var(--ink); font: 600 14px var(--sans); cursor: pointer; transition: background .2s, color .2s; }
input[type=file].file-drop:hover::file-selector-button { background: var(--ink); color: #fff; }
input[type=file].file-drop::-webkit-file-upload-button { margin-right: 14px; padding: 9px 16px; border: 1px solid var(--ink); border-radius: var(--radius-sm); background: var(--stone-0); color: var(--ink); font: 600 14px var(--sans); cursor: pointer; }

/* ---- Request a quote, signed out: a focused page with one large sign-in card, centred on the screen. */
.quote-gate-page { max-width: 1040px; min-height: calc(100vh - var(--header-h, 80px)); min-height: calc(100svh - var(--header-h, 80px));
  display: flex; flex-direction: column; justify-content: center; padding-top: 40px; padding-bottom: 56px; }
.quote-gate-page .signin-gate { padding: 64px 60px; gap: 48px; border-radius: 18px; }
.quote-gate-page .gate-eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); }
.quote-gate-page .signin-gate h1 { font-size: clamp(2.2rem, 3.6vw, 3rem); line-height: 1.1; margin: 0 0 16px; }
.quote-gate-page .signin-gate p:not(.gate-eyebrow) { font-size: 1.12rem; line-height: 1.7; max-width: 52ch; }
.quote-gate-page .gate-actions { min-width: 290px; gap: 14px; }
.quote-gate-page .gate-actions .btn { padding-top: 16px; padding-bottom: 16px; font-size: 16px; }
@media (max-width: 860px) {
  .quote-gate-page { padding-top: 24px; padding-bottom: 32px; }
  .quote-gate-page .signin-gate { grid-template-columns: 1fr; padding: 40px 28px; gap: 28px; }
  .quote-gate-page .gate-actions { min-width: 0; }
}
@media (max-width: 420px) { .quote-gate-page .signin-gate { padding: 32px 22px; } .quote-gate-page .signin-gate p:not(.gate-eyebrow) { font-size: 1.02rem; } }

/* Request a quote (signed out): soft green glows behind the sign-in card. */
body.public.quote-gate {
  background:
    radial-gradient(circle at 10% 18%, rgba(63, 154, 98, .16), transparent 40%),
    radial-gradient(circle at 90% 85%, rgba(47, 122, 75, .14), transparent 44%),
    radial-gradient(circle at 72% 8%, rgba(176, 214, 160, .26), transparent 32%),
    var(--stone-50);
  background-attachment: fixed;
}
body.public.quote-gate .signin-gate { box-shadow: 0 30px 60px -30px rgba(29, 59, 42, .45), inset 0 1px 0 rgba(255, 255, 255, .9); }
