:root {
  --ink: #090807;
  --ink-soft: #171410;
  --ink-panel: #12100d;
  --cream: #f3ece2;
  --cream-soft: #ece2d5;
  --paper: #fbf7f0;
  --gold: #b48a5a;
  --gold-soft: #d6bb96;
  --gold-deep: #7f5a35;
  --olive: #1d231c;
  --line: rgba(180, 138, 90, 0.22);
  --line-strong: rgba(180, 138, 90, 0.4);
  --text: #f8f3ec;
  --text-dark: #201814;
  --muted: rgba(248, 243, 236, 0.72);
  --muted-dark: #64574a;
  --success: #4ce07c;
  --danger: #ff6158;
  --info: #57a7ff;
  --warning: #f2b24d;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
  --radius: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --display: "Cormorant Garamond", Georgia, serif;
  --ui: "Jost", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--ui);
  color: var(--text-dark);
  background: var(--paper);
}

body.portal-page,
body.client-page {
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(180, 138, 90, 0.12), transparent 24%),
    linear-gradient(180deg, #0d0c0a 0%, #16120f 100%);
}

body.invoice-page {
  background: #f3efe8;
  color: #221a15;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(180, 138, 90, 0.24);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body.landing-page input,
body.landing-page textarea {
  background: #fff;
  color: var(--text-dark);
}

input::placeholder,
textarea::placeholder {
  color: rgba(248, 243, 236, 0.42);
}

body.landing-page input::placeholder,
body.landing-page textarea::placeholder {
  color: rgba(32, 24, 20, 0.42);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(180, 138, 90, 0.12);
}

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

.container {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.btn,
.mini-button,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 1px solid transparent;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.btn:hover,
.btn:focus-visible,
.mini-button:hover,
.mini-button:focus-visible,
.ghost-link:hover,
.ghost-link:focus-visible {
  transform: translateY(-2px);
}

.btn {
  min-height: 48px;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.btn-primary {
  background: linear-gradient(180deg, #d1af85, var(--gold));
  color: #180f08;
  box-shadow: 0 16px 36px rgba(180, 138, 90, 0.22);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn-cream {
  background: var(--cream);
  color: var(--text-dark);
}

.btn-success {
  background: linear-gradient(180deg, #83f5aa, var(--success));
  color: #07140c;
}

.btn-danger {
  background: linear-gradient(180deg, #ff9089, var(--danger));
  color: #280706;
}

.btn-info {
  background: linear-gradient(180deg, #8dc8ff, var(--info));
  color: #071523;
}

.btn-warning {
  background: linear-gradient(180deg, #f7ca84, var(--warning));
  color: #2e1b07;
}

.mini-button {
  min-height: 40px;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-button.is-success {
  background: linear-gradient(180deg, #83f5aa, var(--success));
  color: #07140c;
}

.mini-button.is-danger {
  background: linear-gradient(180deg, #ff9089, var(--danger));
  color: #280706;
}

.mini-button.is-info {
  background: linear-gradient(180deg, #8dc8ff, var(--info));
  color: #071523;
}

.mini-button.is-warning {
  background: linear-gradient(180deg, #f7ca84, var(--warning));
  color: #2e1b07;
}

.ghost-link {
  min-height: 38px;
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-lockup,
.brand-port {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
}

.brand-copy {
  display: grid;
  gap: 0.16rem;
}

.brand-name {
  color: var(--cream);
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.02em;
}

.brand-city,
.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

.brand-city {
  color: rgba(243, 236, 226, 0.62);
}

.brand-sub {
  color: rgba(243, 236, 226, 0.52);
}

.landing-shell {
  position: relative;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(9, 8, 7, 0.96) 0%, rgba(9, 8, 7, 0.92) 34%, rgba(9, 8, 7, 0.34) 58%, rgba(9, 8, 7, 0.14) 100%),
    url("https://images.unsplash.com/photo-1769259180062-7d80dad65b78?auto=format&fit=crop&w=1800&q=80")
      center center / cover no-repeat;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-header {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  z-index: 20;
}

.landing-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.7rem 0;
}

.landing-links,
.landing-actions,
.portal-nav-links,
.portal-actions,
.footer-socials,
.card-meta,
.action-row,
.form-actions,
.header-portal-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.landing-links {
  justify-content: center;
  gap: 1.05rem;
  flex-wrap: nowrap;
}

.landing-links a,
.portal-nav-links a {
  color: rgba(248, 243, 236, 0.86);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.landing-links a:hover,
.landing-links a:focus-visible,
.portal-nav-links a:hover,
.portal-nav-links a:focus-visible,
.portal-nav-links a.is-active {
  color: #fff;
}

.landing-actions {
  justify-content: flex-end;
  gap: 0.7rem;
}

.header-portal-links .btn,
.landing-actions .btn {
  min-height: 42px;
  padding-inline: 0.9rem;
  border-radius: 0;
  font-size: 0.72rem;
}

.landing-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  padding: 8.7rem 0 4rem;
}

.landing-copy {
  padding: 2rem 1rem 2rem 0;
}

.landing-copy h1 {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(4.2rem, 8vw, 6.7rem);
  line-height: 0.9;
  font-weight: 500;
  text-transform: uppercase;
}

.landing-rule {
  width: 54px;
  height: 1px;
  margin: 1.6rem 0 1.5rem;
  background: linear-gradient(90deg, rgba(214, 187, 150, 0.95), transparent);
}

.landing-copy p {
  max-width: 330px;
  margin: 0 0 1.7rem;
  color: rgba(248, 243, 236, 0.82);
  font-size: 1rem;
  line-height: 1.65;
}

.landing-copy .ghost-link {
  margin-bottom: 2rem;
}

.landing-hero-side {
  position: relative;
  min-height: 520px;
}

.hero-seal {
  position: absolute;
  right: 2rem;
  top: 9rem;
  width: 178px;
  height: 178px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text);
  text-align: center;
  backdrop-filter: blur(2px);
}

.hero-seal strong {
  display: block;
  font-family: var(--display);
  font-size: 3.2rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.hero-seal span {
  display: block;
  max-width: 110px;
  font-size: 0.82rem;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.spec-section,
.quote-section {
  background: linear-gradient(180deg, #f4eee5 0%, #f1e8dc 100%);
}

.spec-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.55fr 0.82fr 0.95fr;
  gap: 0;
}

.spec-card,
.quote-card,
.portal-card,
.surface-card,
.metric-card,
.list-card,
.history-card,
.invoice-card,
.module-card,
.schedule-card,
.feed-card {
  border: 1px solid var(--line);
}

.spec-card {
  min-height: 356px;
}

.spec-copy,
.visit-card,
.footer-news,
.surface-card,
.metric-card,
.portal-card,
.print-card {
  padding: 2rem;
}

.spec-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--paper);
}

.section-label {
  color: rgba(32, 24, 20, 0.68);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.spec-copy h2 {
  margin: 1rem 0;
  color: var(--text-dark);
  font-family: var(--display);
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 0.96;
  font-weight: 500;
}

.spec-copy p,
.visit-card p,
.footer-news p,
.footer-col p,
.surface-card p,
.metric-card p,
.history-card p,
.invoice-card p,
.module-card p {
  margin: 0;
  color: var(--muted-dark);
  font-size: 1rem;
  line-height: 1.7;
}

.spec-image {
  position: relative;
  overflow: hidden;
  min-height: 356px;
  background: #ddd;
}

.spec-image img,
.quote-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.favorites-list {
  display: grid;
  gap: 1.2rem;
  margin-top: 1rem;
}

.favorites-list article strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
}

.favorites-list article span {
  color: var(--muted-dark);
  font-size: 0.92rem;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.15fr 0.95fr 0.72fr;
  gap: 0;
}

.quote-card {
  min-height: 294px;
}

.quote-card.dark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #090807;
  color: var(--text);
}

.quote-card.dark .section-label,
.visit-card .section-label {
  color: rgba(243, 236, 226, 0.6);
}

.quote-card.dark blockquote {
  margin: 1rem 0;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 3.3rem);
  line-height: 1.04;
}

.quote-card cite {
  color: var(--gold-soft);
  font-size: 0.84rem;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.quote-image,
.visit-card {
  min-height: 294px;
}

.visit-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #090807;
  color: var(--text);
}

.visit-card h3 {
  margin: 0.85rem 0 0.95rem;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 600;
}

.visit-card .hours {
  margin-top: 1.4rem;
  color: var(--muted);
  line-height: 1.8;
}

.landing-footer {
  background: #f6efe4;
  border-top: 1px solid rgba(32, 24, 20, 0.08);
}

.landing-footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.9fr auto;
  gap: 1.6rem;
  padding: 1.8rem 0;
  align-items: start;
}

.footer-brand {
  display: inline-flex;
  align-items: flex-start;
  gap: 1rem;
}

.footer-brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(180, 138, 90, 0.32);
  display: grid;
  place-items: center;
  color: var(--text-dark);
  font-family: var(--display);
  font-size: 2.1rem;
}

.footer-brand-copy strong {
  display: block;
  color: var(--text-dark);
  font-size: 1.25rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.footer-brand-copy span,
.footer-news label,
.footer-col h3,
.footer-copy {
  color: var(--muted-dark);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.footer-news {
  border-left: 1px solid rgba(32, 24, 20, 0.12);
  border-right: 1px solid rgba(32, 24, 20, 0.12);
}

.footer-email {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  align-items: center;
  margin-top: 1rem;
  border-bottom: 1px solid rgba(32, 24, 20, 0.24);
}

.footer-email input,
.footer-email button {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--text-dark);
}

.footer-email button {
  min-height: 48px;
  font-size: 1.4rem;
}

.footer-col h3 {
  margin: 0 0 1rem;
}

.footer-socials a {
  color: var(--text-dark);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-copy {
  text-align: right;
  line-height: 1.7;
}

.portal-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 11, 9, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
}

.portal-nav {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.portal-nav-links {
  justify-content: center;
}

.portal-nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.portal-main {
  padding: 2rem 0 3rem;
}

.portal-grid,
.client-shell {
  display: grid;
  gap: 1rem;
}

.surface-card,
.portal-card,
.metric-card,
.module-card,
.list-card,
.history-card,
.invoice-card,
.feed-card,
.schedule-card {
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(24, 20, 17, 0.96), rgba(12, 10, 8, 0.98));
  box-shadow: var(--shadow);
}

.surface-card h1,
.surface-card h2,
.portal-card h1,
.portal-card h2,
.portal-card h3,
.module-card h3,
.list-card h3,
.history-card h3,
.invoice-card h3,
.feed-card h3 {
  margin: 0 0 0.7rem;
  color: var(--text);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.surface-card h1,
.portal-card h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.96;
}

.surface-card h2,
.portal-card h2 {
  font-size: clamp(1.85rem, 2.6vw, 2.8rem);
  line-height: 1;
}

.page-lead {
  color: var(--muted);
}

.page-hero,
.dual-grid,
.three-grid,
.four-grid,
.stats-grid,
.module-grid,
.invoice-grid,
.history-grid {
  display: grid;
  gap: 1rem;
}

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

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

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

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

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

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.mini-kicker {
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.status-badge,
.tool-chip,
.session-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(180, 138, 90, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-badge.is-new {
  background: linear-gradient(180deg, #f4d7b0, var(--gold-soft));
  color: #211409;
}

.status-badge.is-warn {
  background: linear-gradient(180deg, #f7ca84, var(--warning));
  color: #2e1b07;
}

.status-badge.is-done {
  background: linear-gradient(180deg, #83f5aa, var(--success));
  color: #07140c;
}

.status-badge.is-call {
  background: linear-gradient(180deg, #8dc8ff, var(--info));
  color: #071523;
}

.field-label {
  display: grid;
  gap: 0.55rem;
  color: var(--gold-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-stack,
.list-grid,
.stack-grid,
.schedule-board,
.chart-stack,
.table-wrap {
  display: grid;
  gap: 1rem;
}

.split-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.metric-card .value,
.invoice-card .value,
.portal-number {
  color: var(--gold-soft);
  font-family: var(--display);
  font-size: clamp(2.1rem, 3vw, 2.8rem);
  line-height: 0.95;
}

.metric-card h3,
.module-card h3,
.list-card h3,
.history-card h3,
.invoice-card h3 {
  font-size: 1.55rem;
}

.module-card,
.list-card,
.history-card,
.invoice-card,
.schedule-card,
.feed-card {
  padding: 1.4rem;
}

.module-card {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.meta-item,
.status-line,
.field-help {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.clock-panel {
  display: grid;
  gap: 1rem;
}

.timer-value {
  color: var(--gold-soft);
  font-family: var(--display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  line-height: 0.9;
}

.schedule-card {
  display: grid;
  gap: 0.9rem;
}

.schedule-card .action-row {
  margin-top: 0.4rem;
}

.shift-status-card {
  padding: 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(180, 138, 90, 0.18);
  background: rgba(255, 255, 255, 0.02);
}

.shift-status-card.on {
  border-color: rgba(76, 224, 124, 0.34);
  box-shadow: inset 0 0 0 1px rgba(76, 224, 124, 0.1);
}

.shift-status-card.call {
  border-color: rgba(87, 167, 255, 0.34);
  box-shadow: inset 0 0 0 1px rgba(87, 167, 255, 0.1);
}

.shift-status-card h3 {
  margin: 0 0 0.45rem;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.6rem;
}

.map-shell {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(180, 138, 90, 0.22);
}

.map-shell iframe {
  width: 100%;
  height: 520px;
  border: 0;
  filter: saturate(0.9) contrast(1.02);
}

.map-shell .map-base {
  width: 100%;
  height: 520px;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
}

.tracking-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tracking-pin {
  position: absolute;
  min-width: 110px;
  padding: 0.6rem 0.8rem;
  border-radius: 16px;
  background: rgba(9, 8, 7, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  color: var(--text);
}

.tracking-pin strong {
  display: block;
  font-size: 0.82rem;
}

.chart-stack .month-row {
  display: grid;
  gap: 0.55rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(180, 138, 90, 0.14);
}

.month-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text);
  font-weight: 700;
}

.bar-track {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
}

.bar-fill.sales {
  background: linear-gradient(90deg, #e1c8a3, var(--gold));
}

.bar-fill.private {
  background: linear-gradient(90deg, #8dc8ff, var(--info));
}

.bar-fill.payroll {
  background: linear-gradient(90deg, #f7ca84, var(--warning));
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.85rem 0.7rem;
  border-bottom: 1px solid rgba(180, 138, 90, 0.14);
  color: var(--text);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--gold-soft);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gateway-shell {
  min-height: calc(100vh - 82px);
  display: grid;
  place-items: center;
}

.portal-card {
  max-width: 820px;
}

.portal-card.hero {
  text-align: center;
}

.portal-card.hero .card-meta,
.portal-card.hero .form-actions {
  justify-content: center;
}

.client-sticky-nav {
  position: sticky;
  top: 94px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(180, 138, 90, 0.18);
  background: rgba(12, 10, 8, 0.96);
  box-shadow: var(--shadow);
}

.client-sticky-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(180, 138, 90, 0.22);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.client-section {
  scroll-margin-top: 160px;
}

.print-shell {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.print-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.print-card {
  border-radius: 24px;
  border: 1px solid rgba(32, 24, 20, 0.12);
  background: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
}

.print-head,
.print-dual {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.print-brand {
  color: var(--gold-deep);
  font-family: var(--display);
  font-size: 3.1rem;
  line-height: 1;
}

.print-meta {
  color: #6b5d52;
  line-height: 1.7;
}

.print-pill {
  min-width: 160px;
  align-self: flex-start;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(32, 24, 20, 0.14);
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.print-dual {
  margin-top: 1.8rem;
}

.print-dual h2 {
  margin: 0 0 0.65rem;
  color: var(--text-dark);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.print-dual p,
.print-note {
  color: #4f443c;
  line-height: 1.7;
}

.print-table {
  margin-top: 1.8rem;
}

.print-table th,
.print-table td {
  color: #2b221d;
  border-color: rgba(32, 24, 20, 0.12);
}

.print-table th {
  background: #f5eee3;
}

.aibiz-return-cta {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 900;
  min-height: 2.95rem;
  max-width: calc(100% - 2rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(66, 245, 141, 0.75);
  border-radius: 16px;
  background: linear-gradient(135deg, #42f58d, #65e4ff);
  color: #03120a;
  padding: 0.78rem 1.05rem;
  box-shadow: 0 14px 36px rgba(66, 245, 141, 0.2);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

@media (max-width: 1200px) {
  .landing-nav,
  .portal-nav {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .landing-links,
  .landing-actions,
  .portal-nav-links {
    justify-content: flex-start;
  }

  .spec-grid,
  .quote-grid,
  .landing-footer-grid,
  .module-grid,
  .stats-grid,
  .four-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-seal {
    right: 0;
    top: 1rem;
  }
}

@media (max-width: 920px) {
  .page-hero,
  .dual-grid,
  .three-grid,
  .invoice-grid,
  .history-grid,
  .split-fields,
  .print-head,
  .print-dual {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .client-sticky-nav {
    top: 86px;
  }

  .spec-grid,
  .quote-grid,
  .landing-footer-grid,
  .module-grid,
  .stats-grid,
  .four-grid {
    grid-template-columns: 1fr;
  }

  .landing-shell {
    background-position: 64% center;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1240px);
  }

  .landing-copy h1 {
    font-size: 3.6rem;
  }

  .landing-links,
  .landing-actions,
  .header-portal-links,
  .portal-nav-links,
  .action-row,
  .form-actions {
    width: 100%;
  }

  .landing-actions .btn,
  .header-portal-links .btn,
  .portal-nav-links a,
  .btn,
  .mini-button,
  .client-sticky-nav a {
    width: 100%;
    justify-content: center;
  }

  .aibiz-return-cta {
    left: 0.7rem;
    right: 0.7rem;
    max-width: none;
    bottom: 0.7rem;
  }
}

@media print {
  .print-toolbar,
  .aibiz-return-cta {
    display: none !important;
  }

  .print-shell {
    width: 100%;
    padding: 0;
  }

  .print-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

body.maison-landing {
  margin: 0;
  color: #201814;
  background:
    radial-gradient(circle at top, rgba(215, 190, 156, 0.2), transparent 24%),
    linear-gradient(180deg, #faf5ee 0%, #f1e7da 100%);
}

.section-shell-light {
  background:
    radial-gradient(circle at top left, rgba(196, 166, 128, 0.1), transparent 26%),
    linear-gradient(180deg, #faf6ef 0%, #f2e8db 100%);
}

.maison-hero-shell {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(10, 9, 7, 0.84) 0%, rgba(10, 9, 7, 0.72) 37%, rgba(10, 9, 7, 0.16) 70%, rgba(10, 9, 7, 0.08) 100%),
    url("https://images.unsplash.com/photo-1414235077428-338989a2e8c0?auto=format&fit=crop&w=1800&q=80")
      center center / cover no-repeat;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.maison-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: 1rem;
}

.maison-header-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 0;
}

.maison-brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.maison-brand-mark {
  width: 62px;
  height: 62px;
  border-radius: 20px;
}

.maison-brand-copy {
  display: grid;
  gap: 0.18rem;
}

.maison-brand-name {
  color: var(--cream);
  font-family: var(--display);
  font-size: 2rem;
  line-height: 0.9;
  letter-spacing: 0.04em;
}

.maison-brand-sub {
  color: rgba(243, 236, 226, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.maison-nav,
.maison-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.maison-nav {
  justify-content: center;
}

.maison-nav a,
.maison-text-link {
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.maison-header .btn-outline {
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  min-height: 44px;
  padding-inline: 1rem;
  font-size: 0.78rem;
}

.maison-header .btn-outline:hover,
.maison-header .btn-outline:focus-visible {
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.maison-inquire {
  min-width: 128px;
}

.maison-hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 112px);
  padding: 7rem 0 5rem;
}

.maison-hero-copy {
  max-width: 540px;
}

.maison-hero-copy h1,
.maison-story-copy h2,
.maison-band-copy h2,
.maison-services-copy h2,
.maison-proof-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.6rem, 7vw, 5.9rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
}

.maison-hero-copy h1 {
  color: #fff8ef;
  margin-bottom: 1.6rem;
}

.maison-hero-copy p,
.maison-story-copy p,
.maison-band-copy p,
.maison-service-card p,
.maison-footer p {
  margin: 0 0 1.1rem;
  line-height: 1.7;
}

.maison-hero-copy p {
  color: rgba(248, 243, 236, 0.82);
  font-size: 1.18rem;
}

.maison-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid currentColor;
}

.maison-text-link.dark {
  color: #2d2015;
}

.maison-story,
.maison-services,
.maison-proof {
  padding: 5rem 0;
}

.maison-story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 2.2rem;
  align-items: center;
}

.maison-story-copy h2,
.maison-services-copy h2,
.maison-proof-copy h2 {
  color: #2b2017;
  font-size: clamp(3rem, 5.6vw, 4.7rem);
  margin-bottom: 1.5rem;
}

.maison-story-copy p,
.maison-service-card p {
  color: #5a4a3d;
}

.maison-collage {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 1rem;
  align-items: end;
}

.maison-collage-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 24px 50px rgba(40, 29, 20, 0.12);
  min-height: 220px;
}

.maison-collage-card img,
.maison-service-card img,
.maison-proof-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.maison-collage-card.tall {
  grid-row: span 2;
  min-height: 530px;
}

.maison-collage-card.offset {
  transform: translateY(2rem);
}

.maison-collage-card.portrait {
  min-height: 260px;
}

.maison-band {
  background:
    linear-gradient(90deg, rgba(9, 8, 7, 0.82) 0%, rgba(9, 8, 7, 0.62) 34%, rgba(9, 8, 7, 0.18) 76%, rgba(9, 8, 7, 0.12) 100%),
    url("https://images.unsplash.com/photo-1464366400600-7168b8af9bc3?auto=format&fit=crop&w=1800&q=80")
      center center / cover no-repeat;
}

.maison-band-inner {
  min-height: 430px;
  display: flex;
  align-items: center;
  padding: 4.4rem 0;
}

.maison-band-copy {
  max-width: 540px;
}

.maison-band-copy h2,
.maison-band-copy p,
.maison-proof-copy h2 {
  color: var(--cream);
}

.maison-band-copy p {
  color: rgba(248, 243, 236, 0.78);
}

.maison-services-grid {
  display: grid;
  grid-template-columns: 0.7fr repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  align-items: start;
}

.maison-service-card {
  display: grid;
  gap: 0.9rem;
}

.maison-service-card img {
  min-height: 290px;
  box-shadow: 0 22px 46px rgba(39, 30, 22, 0.12);
}

.maison-service-card h3 {
  margin: 0;
  color: #2b2017;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.maison-service-card a,
.maison-footer-col a {
  color: #2d2015;
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.maison-proof {
  background: linear-gradient(180deg, #0a0907 0%, #15110e 100%);
}

.maison-proof-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.2fr 0.7fr;
  gap: 1.5rem;
  align-items: stretch;
}

.maison-proof-copy,
.maison-proof-quote {
  display: grid;
  align-content: center;
  gap: 1rem;
}

.maison-proof-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(243, 236, 226, 0.82);
  font-family: var(--display);
  font-size: 1.4rem;
}

.maison-proof-quote blockquote {
  margin: 0;
  color: #f7f1e8;
  font-size: 1.5rem;
  line-height: 1.55;
}

.maison-proof-quote cite {
  color: rgba(243, 236, 226, 0.62);
  font-style: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.maison-proof-image img {
  min-height: 100%;
}

.maison-footer {
  background: linear-gradient(180deg, #1b1713 0%, #100e0b 100%);
  color: var(--cream);
  padding: 2.5rem 0 1.2rem;
}

.maison-footer-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, minmax(0, 0.8fr));
  gap: 1.5rem;
  align-items: start;
}

.maison-footer-brand p,
.maison-footer-col p {
  color: rgba(243, 236, 226, 0.72);
}

.maison-footer .btn-outline {
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.44);
  color: var(--cream);
  background: rgba(255, 255, 255, 0.03);
}

.maison-footer-col {
  display: grid;
  gap: 0.55rem;
}

.maison-footer-col h3 {
  margin: 0 0 0.4rem;
  color: #f7f1e8;
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.maison-footer-col a,
.maison-footer-col p,
.maison-footer-bottom span {
  color: rgba(243, 236, 226, 0.72);
}

.maison-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.7rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 1180px) {
  .maison-header-bar,
  .maison-story-grid,
  .maison-proof-grid {
    grid-template-columns: 1fr;
  }

  .maison-services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .maison-nav {
    justify-content: flex-start;
  }

  .maison-hero {
    min-height: auto;
    padding-top: 5rem;
  }

  .maison-collage-card.offset {
    transform: none;
  }
}

@media (max-width: 760px) {
  .maison-header {
    position: static;
  }

  .maison-header-bar,
  .maison-header-actions,
  .maison-nav,
  .maison-footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .maison-services-grid,
  .maison-collage,
  .maison-footer-grid {
    grid-template-columns: 1fr;
  }

  .maison-hero-copy h1,
  .maison-story-copy h2,
  .maison-band-copy h2,
  .maison-services-copy h2,
  .maison-proof-copy h2 {
    font-size: clamp(2.8rem, 13vw, 4rem);
  }

  .maison-header .btn-outline,
  .maison-footer .btn-outline,
  .maison-service-card a {
    width: 100%;
    justify-content: center;
  }

  .maison-collage-card.tall {
    min-height: 340px;
  }

  .maison-band-inner {
    min-height: auto;
  }
}
