/* =========================================================
   Mandrell's — two doors, two languages.
   Left = Pressure Cleaning (industrial / Bricolage Grotesque)
   Right = CFO Services    (editorial   / Fraunces)
   ========================================================= */

:root {
  /* PC palette — the trade */
  --pc-bg:        #0e1418;
  --pc-bg-deep:   #070b0e;
  --pc-ink:       #f4ede0;
  --pc-muted:     #8a9aa5;
  --pc-rule:      #1f2a32;
  --pc-accent:    #7ba8c4;
  --pc-accent-2:  #c9d8e0;

  /* CFO palette — the firm */
  --cfo-bg:       #f6f3ec;
  --cfo-bg-tint:  #efebde;
  --cfo-ink:      #1a2620;
  --cfo-muted:    #5b665f;
  --cfo-rule:     #d9d4c3;
  --cfo-accent:   #1f3d2b;
  --cfo-warm:     #c89b54;

  /* fonts */
  --serif: "Fraunces", "Times New Roman", Times, serif;
  --sans:  "DM Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:  "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --grot:  "Bricolage Grotesque", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 720ms;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
html {
  background: var(--pc-bg);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  min-height: 100svh;
  overflow-x: hidden;
  max-width: 100vw;
}

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--pc-ink); color: var(--pc-bg);
  padding: 8px 14px; font-family: var(--mono); font-size: 12px;
}
.skip:focus { left: 12px; top: 12px; z-index: 100; }

/* =========================================================
   SPLIT
   ========================================================= */
.split {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100svh;
  width: 100%;
  isolation: isolate;
}

/* hover-expand on desktop */
@media (min-width: 880px) and (hover: hover) {
  .split { display: flex; }
  .pc, .cfo { flex: 1 1 50%; transition: flex var(--dur) var(--ease); }
  .split:hover > a { flex-basis: 42%; }
  .split:hover > a:hover { flex-basis: 58%; }
}

/* shared panel skeleton (kept minimal — each side styles itself) */
.pc, .cfo {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  min-width: 0;
  overflow: hidden;
  cursor: pointer;
}

/* =====================================================================
   ============================  LEFT  =================================
   PRESSURE CLEANING — industrial, utility, blueprint
   ===================================================================== */
.pc {
  background: var(--pc-bg);
  color: var(--pc-ink);
  padding:
    clamp(28px, 3.4vw, 48px)
    clamp(28px, 5vw, 80px)
    clamp(40px, 4vw, 64px);
  font-family: var(--grot);
  transition: background-color var(--dur) var(--ease);
}
.pc:hover { background: var(--pc-bg-deep); }

/* faint blueprint grid backdrop */
.pc__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(123,168,196,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(123,168,196,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: 50% 50%;
  mask-image: radial-gradient(ellipse at 30% 50%, #000 30%, transparent 75%);
}

/* top bar — service-station tags */
.pc__topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pc-muted);
  border-bottom: 1px solid var(--pc-rule);
  padding-bottom: clamp(14px, 1.6vw, 22px);
  gap: 16px;
}
.pc__tag::before { content: "● "; color: var(--pc-accent); margin-right: 6px; }
.pc__tag--right::before { content: none; }
.pc__tag--right::after  { content: " ●"; color: var(--pc-accent); margin-left: 6px; }

/* body */
.pc__body {
  align-self: center;
  display: grid;
  gap: clamp(24px, 2.8vw, 36px);
  max-width: 520px;
  min-width: 0;
  padding: clamp(48px, 6vw, 80px) 0;
}
.pc__body > * { min-width: 0; }

.pc__crest img {
  width: clamp(170px, 18vw, 230px);
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  transition: transform 600ms var(--ease);
}
.pc:hover .pc__crest img { transform: translateY(-2px) scale(1.02); }

.pc__title {
  margin: 0;
  font-family: var(--grot);
  font-weight: 600;
  font-size: clamp(56px, 7.4vw, 108px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--pc-ink);
}

.pc__copy {
  margin: 0;
  font-family: var(--grot);
  font-weight: 400;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.55;
  color: #cdc6b7;
  max-width: 46ch;
}

/* spec strip — like a service truck spec sheet */
.pc__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 4px 0 0;
  padding: clamp(16px, 1.8vw, 22px) 0;
  border-top: 1px solid var(--pc-rule);
  border-bottom: 1px solid var(--pc-rule);
}
.pc__stats > div { display: grid; gap: 4px; min-width: 0; }
.pc__stats dt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pc-muted);
}
.pc__stats dd {
  margin: 0;
  font-family: var(--grot);
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.02em;
  color: var(--pc-accent-2);
}

/* chip-style service area list */
.pc__chips {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pc__chips li {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pc-accent-2);
  border: 1px solid var(--pc-rule);
  padding: 6px 10px;
  border-radius: 999px;
}

/* CTA bar */
.pc__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: clamp(20px, 2vw, 28px);
  border-top: 1px solid var(--pc-rule);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.pc__cta-text { color: var(--pc-ink); }
.pc__cta-arrow {
  color: var(--pc-accent);
  display: inline-flex;
  transition: transform 460ms var(--ease);
}
.pc:hover .pc__cta-arrow { transform: translateX(10px); }


/* =====================================================================
   ============================  RIGHT  ================================
   CFO SERVICES — editorial, ledger, refined firm
   ===================================================================== */
.cfo {
  background: var(--cfo-bg);
  color: var(--cfo-ink);
  padding:
    clamp(28px, 3.4vw, 48px)
    clamp(28px, 5vw, 80px)
    clamp(40px, 4vw, 64px);
  font-family: var(--serif);
  transition: background-color var(--dur) var(--ease);
}
.cfo:hover { background: var(--cfo-bg-tint); }

/* hairline rule down the right edge — like ledger paper */
.cfo__rule {
  position: absolute;
  right: clamp(20px, 3vw, 40px);
  top: clamp(80px, 7vw, 110px);
  bottom: clamp(80px, 7vw, 110px);
  width: 1px;
  background: var(--cfo-rule);
  pointer-events: none;
}

/* top bar — firm letterhead */
.cfo__topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cfo-muted);
  border-bottom: 1px solid var(--cfo-rule);
  padding-bottom: clamp(14px, 1.6vw, 22px);
  gap: 16px;
}
.cfo__tag {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

/* body */
.cfo__body {
  align-self: center;
  display: grid;
  gap: clamp(22px, 2.6vw, 34px);
  max-width: 540px;
  min-width: 0;
  padding: clamp(48px, 6vw, 80px) 0;
}
.cfo__body > * { min-width: 0; }

/* monogram block */
.cfo__crest {
  display: grid;
  gap: 6px;
  width: max-content;
  max-width: 100%;
}
.cfo__monogram {
  width: clamp(140px, 14vw, 200px);
  height: auto;
  display: block;
  color: var(--cfo-accent);
}
.cfo__crest-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cfo-muted);
}

.cfo__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(56px, 7.2vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--cfo-ink);
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 144;
  font-feature-settings: "ss01" on, "liga" on;
}
.cfo__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--cfo-accent);
}

.cfo__copy {
  margin: 0;
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.55;
  color: var(--cfo-muted);
  max-width: 46ch;
  font-variation-settings: "SOFT" 50, "opsz" 24;
}

/* founders byline */
.cfo__founders {
  display: grid;
  gap: 4px;
  padding-bottom: clamp(8px, 0.8vw, 12px);
  border-bottom: 1px solid var(--cfo-rule);
}
.cfo__founders-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cfo-muted);
}
.cfo__founders-names {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.005em;
  color: var(--cfo-accent);
}

/* ledger — like an annotated balance sheet */
.cfo__ledger {
  display: grid;
  gap: 0;
  margin: 0;
}
.cfo__ledger > div {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: clamp(10px, 1vw, 14px) 0;
  border-bottom: 1px dashed var(--cfo-rule);
}
.cfo__ledger > div:last-child { border-bottom: none; }
.cfo__ledger dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--cfo-warm);
}
.cfo__ledger dd {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(15px, 1.15vw, 17px);
  color: var(--cfo-ink);
  font-variation-settings: "opsz" 24;
}

/* CTA */
.cfo__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: clamp(20px, 2vw, 28px);
  border-top: 1px solid var(--cfo-rule);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.cfo__cta-text  { color: var(--cfo-accent); }
.cfo__cta-arrow {
  color: var(--cfo-accent);
  display: inline-flex;
  transition: transform 460ms var(--ease);
}
.cfo:hover .cfo__cta-arrow { transform: translateX(10px); }


/* =====================================================================
   RESPONSIVE — stack on narrow
   ===================================================================== */
@media (max-width: 879px) {
  .split { grid-template-columns: minmax(0, 1fr); }

  .pc, .cfo {
    min-height: auto;
    padding: 32px 22px 48px;
    grid-template-rows: auto auto auto;
  }
  .pc__body, .cfo__body { padding: 40px 0; gap: 22px; }
  .pc__title, .cfo__title { font-size: clamp(48px, 13vw, 72px); }
  .pc__copy, .cfo__copy   { font-size: 16px; max-width: 100%; }
  .pc__stats { gap: 10px; }
  .pc__stats dd { font-size: 22px; }
}

/* focus states for keyboard nav */
.pc:focus-visible, .cfo:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px currentColor;
}
