/* ==========================================================================
   Casey Civils & Plant Hire — 2026 theme
   Light, quiet surfaces; large sentence-case type in Geist; soft rounded
   panels; one accent, the Casey orange. Photography does the heavy lifting.
   Loaded by the public site, the portal, the auth screens and (with
   admin.css) the admin.
   ========================================================================== */

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-var.woff2?v=1") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------- tokens */
:root {
  color-scheme: light;

  --ink: #0f1012;
  --ink-2: #1a1b1e;
  --ink-line: rgba(255, 255, 255, 0.1);
  --text: #1c1d20;
  --muted: #62656c;
  --muted-2: #8a8d95;

  --bg: #e9e9ed;
  --bg-alt: #dfdfe4;
  --bg-sunk: #d6d6dc;
  --surface: #ffffff;

  --line: #dcdce1;
  --line-soft: #ebebee;
  --line-strong: #c6c6cd;

  --brand: #e2540f;
  --brand-dark: #c2440a;
  --brand-light: #ff8a4c;
  --brand-soft: #fdeee6;
  --brand-ring: rgba(226, 84, 15, 0.22);

  --ok: #15803d;
  --ok-soft: #e7f6ec;
  --warn: #b45309;
  --warn-soft: #fdf1dc;
  --danger: #c0271d;
  --danger-soft: #fdebe9;
  --info: #1c1d20;
  --info-soft: #ececee;

  /* legacy aliases still referenced by older templates */
  --amber: var(--warn);
  --amber-soft: var(--warn-soft);
  --green: var(--ok);
  --green-soft: var(--ok-soft);
  --red: var(--danger);
  --red-soft: var(--danger-soft);
  --text-2: #2b2c30;
  --charcoal: var(--ink);

  --r-xs: 8px;
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(15, 16, 18, 0.05);
  --shadow-md: 0 14px 34px -18px rgba(15, 16, 18, 0.22);
  --shadow-lg: 0 30px 60px -30px rgba(15, 16, 18, 0.35);

  --wrap: 100%;
  --max: 100%;
  --gutter: clamp(1.1rem, 3.2vw, 4rem);
  --head-h: 72px;

  --font: "Geist", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.5rem + 3.2vw, 4.25rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.045em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.75rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.04em; }
h3 { font-size: 1.12rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
h4 { font-size: .9rem; font-weight: 500; color: var(--muted); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; }
li { margin-bottom: .4rem; }
strong { font-weight: 600; color: var(--ink); }
code {
  font-family: var(--mono);
  font-size: .84em;
  background: var(--bg-alt);
  color: var(--ink);
  padding: .14em .42em;
  border-radius: 6px;
}
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tight { gap: .5rem; }
.row-1, .row-2, .row-3 { display: grid; gap: 1rem; }
.row-1 { grid-template-columns: 1fr; }
.row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Small label that names a block of content. */
.eyebrow {
  display: block;
  margin: 0 0 .6rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--brand-dark);
}
.eyebrow.small { font-size: .84rem; margin-bottom: .5rem; color: var(--muted); }

/* ---------------------------------------------------------------- header */
/* A full-width bar pinned to the top of the page. */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.head-inner {
  height: var(--head-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand { display: flex; align-items: center; gap: .6rem; flex: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: .98rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.brand-text small { font-size: .76rem; color: var(--muted); }

.site-nav { display: flex; align-self: stretch; align-items: stretch; gap: .25rem; margin: 0 auto 0 0; }
.site-nav > a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 .9rem;
  font-size: .94rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.site-nav > a:hover { color: var(--ink); }
.site-nav > a.on { color: var(--ink); }
.site-nav > a.on::after {
  content: "";
  position: absolute;
  left: .9rem;
  right: .9rem;
  bottom: -1px;
  height: 2px;
  background: var(--brand);
}
.nav-actions { display: none; }

.head-actions { display: flex; align-items: center; gap: .35rem; flex: none; }
.head-phone {
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0 .6rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.head-phone:hover { color: var(--brand-dark); }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  --btn-bd: transparent;
  --btn-hover-bg: #2a2b2f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.25rem;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: inherit;
  font-size: .95rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.btn:hover { background: var(--btn-hover-bg); }
.btn:active { transform: scale(.98); }
.btn-primary, .btn-yellow { --btn-bg: var(--brand); --btn-hover-bg: var(--brand-dark); }
.btn-outline, .btn-google {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
  --btn-hover-bg: var(--bg);
}
.btn-outline-dark {
  --btn-bg: rgba(255, 255, 255, 0.1);
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.28);
  --btn-hover-bg: rgba(255, 255, 255, 0.2);
}
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-hover-bg: rgba(15, 16, 18, 0.06); }
.btn-danger { --btn-bg: var(--danger-soft); --btn-fg: var(--danger); --btn-hover-bg: #f9d5d1; }
.btn-sm { padding: .52rem 1rem; font-size: .9rem; }
.btn-xs { padding: .3rem .7rem; font-size: .82rem; }
.btn-block { width: 100%; }
.btn[disabled] { background: var(--bg-alt); color: var(--muted-2); border-color: transparent; cursor: not-allowed; transform: none; }

/* ---------------------------------------------------------------- home hero */
/* Edge-to-edge blurred photograph with a slow orange glow and a faint
   survey grid; headline on the left, the quick-hire finder on the right. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(calc(100vh - var(--head-h)), 880px);
  padding: clamp(3rem, 7vw, 6rem) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  background: var(--ink);
  color: #fff;
}
.hero-photo-bg {
  position: absolute;
  inset: -40px;            /* oversize so the blurred edges stay out of view */
  z-index: -2;
  background-size: cover;
  background-position: center 40%;
  filter: blur(10px) saturate(1.2) brightness(.5);
}
/* A warm orange glow inside the photo that drifts and breathes slowly. */
.hero::before {
  content: "";
  position: absolute;
  inset: -20%;   /* oversize so the drifting never exposes an edge */
  z-index: -1;
  background:
    radial-gradient(24% 36% at 60% 47%, rgba(255, 138, 60, 0.95), rgba(226, 84, 15, 0.45) 42%, transparent 72%),
    radial-gradient(16% 24% at 80% 72%, rgba(255, 170, 90, 0.45), transparent 70%),
    radial-gradient(18% 24% at 30% 18%, rgba(226, 84, 15, 0.35), transparent 70%);
  mix-blend-mode: screen;
  animation: hero-glow 12s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
@keyframes hero-glow {
  from { transform: translate3d(-4%, 3%, 0) scale(1); opacity: .6; }
  to   { transform: translate3d(5%, -4%, 0) scale(1.18); opacity: 1; }
}
/* Faint grid, strongest around the glow and fading out to the edges. */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center;
  -webkit-mask-image: radial-gradient(60% 75% at 60% 45%, #000 0%, transparent 78%);
  mask-image: radial-gradient(60% 75% at 60% 45%, #000 0%, transparent 78%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(15, 16, 18, 0.78) 0%, rgba(15, 16, 18, 0.35) 45%, rgba(15, 16, 18, 0) 75%),
    linear-gradient(0deg, rgba(15, 16, 18, 0.55) 0%, rgba(15, 16, 18, 0) 35%);
}
.hero-copy { max-width: 820px; }
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.5rem;
  padding: .4rem .95rem .4rem .75rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: .9rem;
  font-weight: 500;
  color: #fff;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.hero-pill-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; flex: none; }
.hero-pill-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #4ade80;
  animation: hero-ping 2.2s ease-out infinite;
}
@keyframes hero-ping {
  from { transform: scale(1); opacity: .7; }
  to   { transform: scale(3.2); opacity: 0; }
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.8rem, 1rem + 5.6vw, 6.5rem);
  font-weight: 600;
  line-height: .96;
  letter-spacing: -0.055em;
  margin-bottom: 1.5rem;
}
.hero h1 span { display: block; padding-bottom: .06em; }
.hero h1 span + span {
  color: var(--brand-light);
  background: linear-gradient(95deg, #ffffff 0%, #ffc49c 38%, #ff7a2f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); line-height: 1.5; color: rgba(255, 255, 255, 0.82); max-width: 44ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-actions .btn { padding: .9rem 1.5rem; font-size: 1rem; }
.hero-actions .btn-primary { box-shadow: 0 14px 34px -12px rgba(226, 84, 15, 0.9); }
.hero .btn-outline {
  --btn-bg: rgba(255, 255, 255, 0.1);
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.28);
  --btn-hover-bg: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Quick-hire finder: choose a type, an item and dates without leaving the hero. */
.finder {
  position: relative;
  width: 26rem;
  max-width: 100%;
  justify-self: end;
  padding: 1.5rem;
  border-radius: 26px;
  background: rgba(18, 18, 20, 0.6);
  box-shadow: 0 40px 90px -40px rgba(226, 84, 15, 0.75), 0 24px 50px -30px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
}
/* gradient hairline: bright orange at the top-left corner, fading round */
.finder::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255, 150, 90, 0.95), rgba(255, 255, 255, 0.22) 35%, rgba(255, 255, 255, 0.08) 70%, rgba(255, 138, 76, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.finder h2 { color: #fff; font-size: 1.5rem; letter-spacing: -0.035em; margin-bottom: 1.1rem; }
.finder label { color: rgba(255, 255, 255, 0.82); margin-bottom: .75rem; }
.finder select, .finder input { border-color: transparent; padding-top: .8rem; padding-bottom: .8rem; }
.finder-dates { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: .6rem; }
.finder-status {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin: 0 0 .85rem;
  padding: .6rem .75rem;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: .9rem;
  line-height: 1.4;
}
.finder-status[hidden] { display: none; }
.finder-status::before { content: ""; width: 9px; height: 9px; margin-top: .32rem; border-radius: 50%; background: var(--muted-2); flex: none; }
.finder-status.ok::before { background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.22); }
.finder-status.busy::before { background: var(--brand-light); box-shadow: 0 0 0 4px rgba(255, 138, 76, 0.25); }
.finder-actions { display: grid; gap: .5rem; margin-top: .35rem; }
.finder-actions .btn { padding: .85rem 1.25rem; }
.finder-actions .btn-primary:not([disabled]) { box-shadow: 0 14px 30px -12px rgba(226, 84, 15, 0.9); }
.finder .btn-primary[disabled] { background: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.55); }

/* ---------------------------------------------------------------- booking calendar */
/* One month of one item's diary: free days are buttons, booked days are
   struck through, the customer's own dates are filled orange. */
.hirecal { --cal-fg: var(--ink); --cal-muted: var(--muted); --cal-busy-bg: var(--bg-alt); --cal-hover: var(--brand-soft); font-variant-numeric: tabular-nums; }
.hirecal[hidden] { display: none; }
.hirecal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.hirecal-head strong { font-size: .95rem; font-weight: 600; color: var(--cal-fg); }
.hirecal-nav {
  width: 2rem; height: 2rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--cal-fg);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.hirecal-nav:hover:not([disabled]) { background: var(--cal-busy-bg); }
.hirecal-nav[disabled] { opacity: .3; cursor: default; }
.hirecal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.hirecal-week { margin-bottom: 2px; }
.hirecal-week span { text-align: center; font-size: .74rem; color: var(--cal-muted); }
.hirecal-day {
  aspect-ratio: 1 / .82;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--cal-fg);
  font: inherit;
  font-size: .86rem;
  cursor: pointer;
}
.hirecal-day:hover:not([disabled]) { background: var(--cal-hover); }
.hirecal-day.is-today { box-shadow: inset 0 0 0 1.5px var(--cal-muted); }
.hirecal-day.is-past { color: var(--cal-muted); opacity: .45; cursor: default; }
.hirecal-day.is-busy { background: var(--cal-busy-bg); color: var(--cal-muted); text-decoration: line-through; cursor: not-allowed; }
.hirecal-day.is-sel { background: var(--brand); color: #fff; opacity: 1; }
.hirecal-key { display: flex; gap: 1rem; margin: .6rem 0 0; font-size: .78rem; color: var(--cal-muted); }
.hirecal-key span { display: inline-flex; align-items: center; gap: .35rem; }
.hirecal-key span::before { content: ""; width: .7rem; height: .7rem; border-radius: 3px; }
.hirecal-key .k-free::before { box-shadow: inset 0 0 0 1px var(--cal-muted); }
.hirecal-key .k-busy::before { background: var(--cal-busy-bg); box-shadow: inset 0 0 0 1px var(--cal-muted); }
.hirecal-key .k-sel::before { background: var(--brand); }
.hirecal-dark {
  --cal-fg: #fff;
  --cal-muted: rgba(255, 255, 255, 0.6);
  --cal-busy-bg: rgba(255, 255, 255, 0.1);
  --cal-hover: rgba(255, 255, 255, 0.18);
  margin: 0 0 .85rem;
  padding: .75rem;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.06);
}

/* one-line verdict on an item's dates */
.line-status {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin: 0;
  font-size: .92rem;
  line-height: 1.4;
  color: var(--text);
}
.line-status[hidden] { display: none; }
.line-status::before { content: ""; width: 9px; height: 9px; margin-top: .34rem; border-radius: 50%; background: var(--muted-2); flex: none; }
.line-status.ok::before { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18); }
.line-status.busy::before { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.line-status.off { color: var(--danger); }
.line-status.off::before { background: var(--danger); }

/* availability panel on a machine / tool page */
.avail-card {
  padding: 1.2rem 1.3rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.avail-card h3 { font-size: .9rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-bottom: .5rem; }
.avail-card .line-status { margin-bottom: .9rem; font-weight: 500; }
.avail-card .hirecal { max-width: 24rem; }

/* request form: one block per machine or tool */
.hire-lines { display: grid; gap: .75rem; }
.hire-line {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr) minmax(0, .7fr) auto;
  align-items: end;
  gap: .6rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  min-width: 0;
}
.hire-line legend { padding: 0 .4rem; font-size: .84rem; font-weight: 500; color: var(--muted); }
.hire-line label { margin-bottom: 0; }
.hire-line-remove { align-self: end; margin-bottom: .15rem; }
.hire-line-remove[hidden] { display: none; }
.hire-line .line-status, .hire-line-cal { grid-column: 1 / -1; }
.hire-line-cal summary { font-size: .88rem; font-weight: 500; color: var(--brand-dark); cursor: pointer; width: fit-content; }
.hire-line-cal .hirecal { max-width: 22rem; margin-top: .75rem; padding: .75rem; border-radius: var(--r-sm); background: var(--surface); }
[data-line-add][hidden] { display: none; }
@media (max-width: 760px) {
  .hire-line { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .hire-line-item { grid-column: 1 / -1; }
  .hire-line-remove { grid-column: 1 / -1; justify-self: start; }
}

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(3.25rem, 6vw, 5.5rem) 0; }
/* warm band: a wash of the brand orange so white tiles stand off it */
.section-alt { background: linear-gradient(180deg, #fdeee3 0%, #fbdcc8 100%); }
.section-alt .eq-card, .section-alt .pillar { border-color: rgba(194, 68, 10, 0.14); box-shadow: 0 18px 40px -26px rgba(194, 68, 10, 0.55); }
.section-alt .btn-outline { --btn-bd: rgba(194, 68, 10, 0.3); }
.section-dark {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--brand-light); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.section-head h2 { margin-bottom: 0; }
.section-sub { margin: .6rem 0 0; font-size: 1.08rem; color: var(--muted); max-width: 52ch; }
.section-head > .btn { flex: none; }

.view-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .94rem;
  font-weight: 550;
  color: var(--ink);
  white-space: nowrap;
}
.view-link::after {
  content: "";
  width: .45em; height: .45em;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .15s ease;
}
.view-link:hover { color: var(--brand-dark); }
.view-link:hover::after { transform: translateX(3px) rotate(45deg); }
.section-dark .view-link { color: #fff; }
.section-dark .view-link:hover { color: var(--brand-light); }

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .9rem; }

/* ---------------------------------------------------------------- cards */
.eq-card, .svc-card, .proj-card {
  display: flex;
  flex-direction: column;
  padding: .5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 2px rgba(15, 16, 18, 0.05), 0 16px 34px -24px rgba(15, 16, 18, 0.35);
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}
.eq-card:hover, .svc-card:hover, .proj-card:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.eq-card { container-type: inline-size; }
.eq-card:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -30px rgba(15, 16, 18, 0.4); }
.eq-media, .svc-media, .proj-media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--ink);
}
.eq-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .3, 1); }
/* a low warm glow so studio artwork and site photos sit in the same light */
.eq-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 50% at 50% 108%, rgba(226, 84, 15, 0.42), transparent 70%),
    linear-gradient(180deg, rgba(15, 16, 18, 0.35) 0%, rgba(15, 16, 18, 0) 30%);
  pointer-events: none;
}
.svc-media img, .proj-media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .3, 1); }
.eq-card:hover .eq-media img, .svc-card:hover .svc-media img, .proj-card:hover .proj-media img { transform: scale(1.045); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .7rem;
  border-radius: var(--r-pill);
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.3;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.eq-media .chip { position: absolute; top: .7rem; z-index: 1; }
.eq-media .chip-status { left: .7rem; }
.detail-meta .chip { background: var(--surface); border: 1px solid var(--line); }
.chip-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.chip-status.ok::before { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
.chip-status.busy::before { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.eq-media .chip-cat { right: .7rem; }
.chip-cat { background: rgba(15, 16, 18, 0.5); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; }

.eq-body { display: flex; flex-direction: column; padding: 1.1rem .8rem .7rem; flex: 1; }
.eq-meta {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 .45rem;
  font-size: .84rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.eq-meta span + span { margin-left: .6rem; padding-left: .6rem; border-left: 1px solid var(--line-strong); }
.eq-meta span { line-height: 1.1; }
.eq-body h3 { font-size: 1.3rem; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: .5rem; }
.eq-body h3 a:hover, .svc-body h3 a:hover, .proj-body h3 a:hover { color: var(--brand-dark); }
.eq-model { font-size: .84rem; color: var(--muted-2); margin-bottom: .6rem; }
.eq-desc {
  font-size: .94rem;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 1.1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* headline specs, three across */
.eq-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: auto 0 1.1rem;
  padding: .75rem 0;
  border-radius: var(--r-sm);
  background: #f3f3f6;
}
.eq-specs > div { min-width: 0; padding: 0 .75rem; }
.eq-specs > div + div { border-left: 1px solid var(--line); }
.eq-specs dt { font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq-specs dd { margin: .1rem 0 0; font-size: .94rem; font-weight: 550; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.eq-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: auto;
}
.eq-specs + .eq-foot { margin-top: 0; }
.price { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.price-label { font-size: .78rem; color: var(--muted-2); }
.price strong { font-size: 1.7rem; font-weight: 600; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.price strong small { font-size: .84rem; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.price .poa { color: var(--ink); }
.price-locked a { font-size: .95rem; font-weight: 550; color: var(--brand-dark); white-space: nowrap; }
.price-locked a:hover { text-decoration: underline; text-underline-offset: 3px; }
.eq-add { display: flex; align-items: center; gap: .4rem; flex: none; margin-left: auto; }
/* narrow cards: two specs instead of three, actions on their own row */
@container (max-width: 340px) {
  .eq-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eq-specs > div:nth-child(n + 3) { display: none; }
  .eq-add { width: 100%; }
  .eq-add .btn { flex: 1; }
}
.eq-add .btn { padding: .68rem 1.1rem; }
/* round "details" button: an arrow that nudges on hover */
.eq-more {
  display: grid;
  place-items: center;
  width: 2.65rem; height: 2.65rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  flex: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.eq-more span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.eq-more::before {
  content: "";
  width: .5rem; height: .5rem;
  border-top: 1.6px solid currentColor;
  border-right: 1.6px solid currentColor;
  transform: translate(-1px, 1px) rotate(0deg);
  transition: transform .2s ease;
}
.eq-more:hover, .eq-card:hover .eq-more { background: var(--ink); border-color: var(--ink); color: #fff; }
.eq-card:hover .eq-more::before { transform: translate(0, 0); }

.svc-body, .proj-body { padding: 1rem .75rem .7rem; display: flex; flex-direction: column; flex: 1; }
.svc-body h3, .proj-body h3 { font-size: 1.14rem; margin-bottom: .35rem; }
.svc-body .muted, .proj-body .muted { font-size: .92rem; margin-bottom: 1rem; }
.svc-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-top: auto; }
.svc-foot .view-link { font-size: .9rem; }

.section-dark .svc-card,
.section-dark .proj-card,
.section-dark .eq-card {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--ink-line);
  color: rgba(255, 255, 255, 0.72);
}
.section-dark .svc-card:hover, .section-dark .proj-card:hover { border-color: rgba(255, 255, 255, 0.24); box-shadow: none; }
.section-dark .svc-card .muted, .section-dark .proj-card .muted { color: rgba(255, 255, 255, 0.62); }
.section-dark .svc-card h3 a, .section-dark .proj-card h3 a { color: #fff; }
.section-dark .svc-card h3 a:hover { color: var(--brand-light); }
.section-dark .svc-card .eyebrow { color: rgba(255, 255, 255, 0.5); }
.section-dark .btn-outline { --btn-bg: rgba(255, 255, 255, 0.08); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.2); --btn-hover-bg: rgba(255, 255, 255, 0.18); }
.grid-5 .svc-body h3 { font-size: 1.05rem; }

.about-media img { border-radius: var(--r-xl); }
.about-lead { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.15; letter-spacing: -0.035em; }
.proj-hero-img { width: 100%; border-radius: var(--r-xl); }

/* ---------------------------------------------------------------- CTA band */
.cta-band {
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  padding: clamp(3rem, 7vw, 6rem) 0;
  background: var(--brand);
  color: #fff;
}
.section-dark + .cta-band { margin-top: 0; }
.cta-band h2 { color: #fff; font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4.5rem); line-height: 1; letter-spacing: -0.05em; margin-bottom: .9rem; max-width: 16ch; }
.cta-band p { font-size: 1.1rem; color: rgba(255, 255, 255, 0.92); max-width: 52ch; margin: 0 0 1.75rem; }
.cta-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cta-band .btn-primary, .cta-band .btn-yellow { --btn-bg: #fff; --btn-fg: var(--ink); --btn-hover-bg: #f1f1f2; }
.cta-band .btn-outline-dark, .cta-band .btn-outline {
  --btn-bg: rgba(255, 255, 255, 0.14);
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.4);
  --btn-hover-bg: rgba(255, 255, 255, 0.26);
}
.cta-band :focus-visible { outline-color: #fff; }

/* ---------------------------------------------------------------- page hero */
.page-hero { padding: clamp(3rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-hero.slim { padding: 2.5rem 0 1.25rem; }
.page-hero h1 { margin-bottom: .6rem; max-width: 20ch; }
.page-hero .hero-sub { color: var(--muted); font-size: 1.12rem; margin-bottom: 0; max-width: 58ch; }
.page-hero + .section { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.hero-inline { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.hero-aside { flex: none; }

/* ---------------------------------------------------------------- portal tabs */
.portal-tabs { padding: .25rem 0 0; }
.portal-tabs + .section { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.portal-tabs-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  gap: .3rem;
  overflow-x: auto;
}
.portal-tabs a {
  padding: .5rem 1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: .92rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.portal-tabs a:hover { color: var(--ink); border-color: var(--line-strong); }
.portal-tabs a.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------------------------------------------------------------- filters */
.filters {
  padding: .6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  margin-bottom: 1.75rem;
}
.search-row { position: relative; margin-bottom: .5rem; }
.search-row input { margin-top: 0; border-color: transparent; background: var(--bg); }
.filter-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.filter-row select { width: auto; margin-top: 0; border-radius: var(--r-pill); padding-top: .5rem; padding-bottom: .5rem; font-size: .92rem; }
.result-count { margin-left: auto; padding-right: .5rem; font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- equipment detail */
.detail { padding-top: clamp(1rem, 2vw, 1.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.crumbs { font-size: .88rem; color: var(--muted); margin: 1.25rem 0; }
.crumbs a:hover { color: var(--ink); }
.detail-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.detail-media img { width: 100%; border-radius: var(--r-xl); background: var(--ink); }
.thumbs { display: flex; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.thumbs img {
  width: 84px; height: 62px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .15s ease;
}
.thumbs img:hover { border-color: var(--brand); }
.detail-meta {
  display: flex;
  align-items: center;
  gap: .4rem .9rem;
  flex-wrap: wrap;
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: .75rem;
}
.detail-info h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); margin-bottom: .75rem; }
.lead { font-size: 1.1rem; color: var(--muted); margin-bottom: 1.5rem; }
.price-box {
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  margin-bottom: 1.25rem;
}
.price-box .muted { font-size: .88rem; }
.price-box > :last-child { margin-bottom: 0; }
.rate-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: .5rem 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
}
.rate-row:last-of-type { border-bottom: 0; }
.rate-row strong { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.price-box .price-locked { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); display: block; margin: .2rem 0 .35rem; }
.detail-lower {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.detail-lower h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.prose { color: var(--text); white-space: pre-line; max-width: 66ch; }
.specs {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.2rem 1.3rem;
  align-self: start;
}
.specs h3 { font-size: .9rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-bottom: .5rem; }
.specs table { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: .6rem 0; font-size: .95rem; border-bottom: 1px solid var(--line-soft); }
.specs th { color: var(--muted); font-weight: 400; }
.specs td { text-align: right; font-weight: 550; color: var(--ink); font-variant-numeric: tabular-nums; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }

/* ---------------------------------------------------------------- avatars */
.avatar {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  overflow: hidden;
  background: var(--bg-sunk);
}
.avatar-fallback { background: var(--brand); color: #fff; font-weight: 600; font-size: .95rem; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.2rem; }
.avatar.xl { width: 92px; height: 92px; font-size: 1.6rem; }
.avatar-row { display: flex; align-items: center; gap: 1.1rem; margin-bottom: .6rem; }
.avatar-row input[type="file"] { font-size: .86rem; }

/* ---------------------------------------------------------------- pills & badges */
.pill, .badge {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: var(--r-pill);
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.4;
  background: var(--info-soft);
  color: var(--text);
  white-space: nowrap;
  text-transform: lowercase;
}
.pill::first-letter, .badge::first-letter { text-transform: uppercase; }
.pill-ok { background: var(--ok-soft); color: #116432; }
.pill-pending { background: var(--warn-soft); color: #8a4207; }
.pill-declined { background: var(--danger-soft); color: #9c1f17; }
.badge-role { background: var(--ink); color: #fff; }
.badge-suspended { background: var(--danger-soft); color: #9c1f17; }
.reason-mini {
  display: block;
  margin-top: .35rem;
  font-size: .82rem;
  color: var(--muted);
  max-width: 26ch;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------------------------------------------------------------- tables */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: auto;
  background: var(--surface);
}
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th {
  text-align: left;
  padding: .8rem 1rem;
  font-size: .84rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  text-transform: lowercase;
}
.table th::first-letter { text-transform: uppercase; }
.table td { padding: .85rem 1rem; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafafa; }
.actions { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.inline { display: inline-flex; align-items: center; gap: .35rem; }

/* ---------------------------------------------------------------- portal / decisions */
.two-col { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 1.25rem; align-items: start; }
.portal-side { display: grid; gap: 1.25rem; }
.side-card, .form-card, .pillar, .stat, .decision {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.side-card { padding: 1.35rem; }
.side-card h3 { font-size: 1.12rem; }
.side-card + .side-card { margin-top: 1rem; }
.portal-side .side-card + .side-card { margin-top: 0; }
.contact-phone { font-size: 2rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.contact-phone:hover { color: var(--brand-dark); }
.kv { width: 100%; border-collapse: collapse; }
.kv th, .kv td { text-align: left; padding: .6rem 0; font-size: .94rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.kv th { width: 38%; color: var(--muted); font-weight: 400; }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: 0; }
.decision { padding: 1.3rem 1.35rem; }
.decision-label {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: .5rem;
  color: var(--ink);
  text-transform: capitalize;
}
.decision-label::before { content: ""; width: 12px; height: 12px; margin-left: 4px; border-radius: 50%; background: var(--muted-2); flex: none; }
.decision-pending .decision-label::before { background: var(--brand); box-shadow: 0 0 0 5px var(--brand-ring); }
.decision-ok .decision-label::before { background: #22c55e; box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.2); }
.decision-declined .decision-label::before { background: var(--danger); box-shadow: 0 0 0 5px rgba(192, 39, 29, 0.16); }
.decision .muted { font-size: .92rem; }
.decision-reason { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line-soft); }
.decision-reason p { margin: 0; }

/* ---------------------------------------------------------------- stats */
.stats-grid, .adm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat { padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 1.25rem; }
.stat strong, .stat span:first-child {
  display: block;
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -0.05em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat span, .stat small { font-size: .9rem; color: var(--muted); }

/* ---------------------------------------------------------------- forms */
.form-card, .auth-card { padding: clamp(1.25rem, 3vw, 1.75rem); }
.stack > * + * { margin-top: 1rem; }
label {
  display: block;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: .9rem;
}
label input, label select, label textarea,
input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="number"], input[type="date"], input[type="search"], select, textarea {
  width: 100%;
  margin-top: .35rem;
  padding: .72rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background-color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
select {
  padding-right: 2.2rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%2362656c' stroke-width='1.6'/></svg>");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
input:focus, select:focus, textarea:focus,
label input:focus, label select:focus, label textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-ring);
  background-color: #fff;
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
label input[disabled], input[disabled] { background-color: var(--bg); color: var(--muted); }
textarea { resize: vertical; min-height: 110px; }
input[type="file"] { font: inherit; font-size: .9rem; }
.field { margin-bottom: .9rem; }
.field-head { display: flex; align-items: baseline; justify-content: space-between; }
.field-head label { margin-bottom: 0; }
.field-link { font-size: .9rem; font-weight: 500; color: var(--brand-dark); }
.field-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.check { display: flex; align-items: center; gap: .55rem; font-size: .95rem; font-weight: 400; color: var(--text); }
.check input { width: 1.1rem; height: 1.1rem; margin: 0; padding: 0; accent-color: var(--brand); flex: none; }
.hint { display: block; margin-top: .35rem; font-size: .84rem; font-weight: 400; color: var(--muted); }
.settings-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 1.25rem; align-items: start; }

/* ---------------------------------------------------------------- auth */
.auth-body { min-height: 100vh; min-height: 100dvh; margin: 0; background: var(--bg); }
.auth-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: 100vh;
  min-height: 100dvh;
}
.auth-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--ink) url("/images/hero.jpg") center / cover;
  color: rgba(255, 255, 255, 0.86);
}
.auth-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 16, 18, 0.6) 0%, rgba(15, 16, 18, 0.45) 30%, rgba(15, 16, 18, 0.92) 100%);
}
.auth-panel .brand-text strong { color: #fff; }
.auth-panel .brand-text small { color: rgba(255, 255, 255, 0.7); }
.auth-panel h2 { color: #fff; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem); line-height: 1.02; letter-spacing: -0.045em; max-width: 14ch; }
.auth-panel p { font-size: 1.02rem; max-width: 44ch; }
.auth-panel .eyebrow { color: var(--brand-light); }
.auth-panel-foot { font-size: .9rem; color: rgba(255, 255, 255, 0.7); margin: 0; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: clamp(1.5rem, 5vw, 4rem); }
.auth-wrap { width: 100%; max-width: 420px; }
.auth-logo { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.75rem; }
.auth-title { font-size: 2.25rem; margin-bottom: .4rem; }
.auth-sub { color: var(--muted); margin-bottom: 1.5rem; }
.auth-card { padding: 0; border: 0; background: transparent; }
.auth-foot { font-size: .94rem; color: var(--muted); margin-top: 1.25rem; }
.auth-foot a { color: var(--brand-dark); font-weight: 550; }
.auth-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-check {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 1.4rem;
  font-weight: 600;
}
.or { display: flex; align-items: center; gap: .75rem; margin: 1.1rem 0; color: var(--muted); font-size: .88rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------------------------------------------------------------- messages */
.invite-banner, .notice, .flash {
  padding: .85rem 1.05rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: .94rem;
}
.invite-banner { border-color: transparent; background: var(--brand-soft); color: #8f3207; font-weight: 500; margin-bottom: 1.2rem; }
.notice a { font-weight: 550; color: var(--brand-dark); }
.notice a:hover { text-decoration: underline; text-underline-offset: 3px; }
.flash { font-weight: 500; margin-bottom: 1.25rem; }
main > .flash { margin: 1.25rem var(--gutter) 0; }
.flash-success { border-color: transparent; background: var(--ok-soft); color: #116432; }
.flash-error { border-color: transparent; background: var(--danger-soft); color: #9c1f17; }

/* ---------------------------------------------------------------- misc */
.empty {
  padding: 3.5rem 1.5rem;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
}
.empty p { color: var(--muted); }
.cart-list { list-style: none; padding: 0; margin: .5rem 0 0; }
.cart-list li { padding: .55rem 0; border-bottom: 1px solid var(--line-soft); font-size: .95rem; }
.cart-list li:last-child { border-bottom: 0; }
.code {
  display: block;
  padding: .9rem 1rem;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #e4e4e7;
  font-family: var(--mono);
  font-size: .84rem;
  overflow-x: auto;
}
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 1.25rem; align-items: start; }
.pillar { padding: 1.35rem; }
.pillar h3 { margin-bottom: .35rem; }
.pillar p { margin: 0; font-size: .94rem; }
.pillar-ico { display: none; }
.upload-preview {
  margin-bottom: 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r);
  background: var(--bg);
  overflow: hidden;
}
.upload-preview img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.invite-url {
  width: 100%;
  font-family: var(--mono);
  font-size: .78rem;
  padding: .45rem .6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  background: var(--bg);
  color: var(--text);
}
.key { font-weight: 550; }

/* ---------------------------------------------------------------- footer */
.site-foot {
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.62);
}
main:has(> .cta-band:last-child) + .site-foot { margin-top: 0; }
.foot-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 2rem;
}
.site-foot h4 { color: rgba(255, 255, 255, 0.5); font-size: .88rem; font-weight: 400; margin-bottom: .8rem; }
.site-foot a { display: block; padding: .25rem 0; font-size: .96rem; color: rgba(255, 255, 255, 0.86); transition: color .15s ease; }
.site-foot a:hover { color: var(--brand-light); }
.site-foot p { font-size: .96rem; margin: 0 0 .45rem; }
.site-foot p a { display: inline; padding: 0; }
.site-foot .foot-phone { font-size: 1.9rem; font-weight: 600; letter-spacing: -0.04em; color: #fff; line-height: 1.15; font-variant-numeric: tabular-nums; }
.site-foot .muted { color: rgba(255, 255, 255, 0.62); }
.site-foot .brand-text strong { color: #fff; }
.site-foot .brand-text small { color: rgba(255, 255, 255, 0.6); }
.foot-brand { margin-bottom: .9rem; }
.foot-bottom {
  position: relative;
  max-width: var(--wrap);
  margin: 2.5rem auto 0;
  padding: 1.25rem var(--gutter) 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .86rem;
  color: rgba(255, 255, 255, 0.5);
}
.foot-bottom::after {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--ink-line);
}

/* ---------------------------------------------------------------- responsive */
@media (min-width: 1500px) {
  /* at full width keep card imagery from ballooning */
  .grid-4 { gap: 1.5rem; }
  .hero-copy { max-width: 900px; }
}
@media (max-width: 1280px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .head-phone { display: none; }
  .site-nav > a { padding: 0 .6rem; }
  .site-nav > a.on::after { left: .6rem; right: .6rem; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .finder { justify-self: start; }
}
@media (max-width: 1080px) {
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid, .detail-lower, .two-col, .settings-grid, .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-panel { display: none; }
  .nav-toggle { display: block; position: relative; z-index: 70; }
  .head-actions { display: none; }
  .brand { position: relative; z-index: 70; }
  body.nav-open { overflow: hidden; }

  /* full-screen menu */
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 65;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: calc(var(--head-h) + 1.5rem) var(--gutter) 2rem;
    background: var(--surface);
    overflow-y: auto;
  }
  body.nav-open .site-nav { display: flex; }
  .site-nav > a {
    display: block;
    padding: .7rem 0;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--ink);
  }
  .site-nav > a:hover, .site-nav > a.on { background: transparent; }
  .site-nav > a.on { color: var(--brand); }
  .site-nav > a.on::after { display: none; }
  .site-nav .nav-actions { display: grid; gap: .6rem; margin-top: auto; padding-top: 2rem; }
  .site-nav .nav-actions .btn { width: 100%; padding: .9rem 1.25rem; }
  body.nav-open .nav-toggle { font-size: 0; }
  body.nav-open .nav-toggle::before { content: "\2715"; font-size: 1rem; }
}
@media (max-width: 760px) {
  .grid-3, .grid-5, .grid-4 { grid-template-columns: 1fr; }
  .row-2, .row-3 { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .hero-inline { flex-direction: column; align-items: flex-start; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; gap: .25rem; }
  .result-count { margin-left: 0; }
  .brand-text small { display: none; }
  :root { --head-h: 60px; }
  .hero { min-height: 0; padding-top: 2.75rem; padding-bottom: 2rem; border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .finder { width: 100%; }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .finder { background: rgba(15, 16, 18, 0.85); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .btn:active { transform: none; }
  .hero::before, .hero-pill-dot::after { animation: none; }
  .eq-card:hover, .eq-card:hover .eq-media img, .svc-card:hover .svc-media img, .proj-card:hover .proj-media img { transform: none; }
}
