:root {
  --bg: #f5f3ee;
  --paper: #fffdf8;
  --paper-strong: #ffffff;
  --ink: #181b1a;
  --muted: #70756f;
  --line: #dfddd3;
  --line-strong: #c9c6ba;
  --sage: #6f8f7b;
  --sage-dark: #355849;
  --clay: #c77155;
  --gold: #caa34a;
  --shadow: 0 34px 90px rgba(48, 45, 37, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(24, 27, 26, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 27, 26, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 78% 18%, rgba(202, 163, 74, 0.18), transparent 26rem),
    radial-gradient(circle at 18% 82%, rgba(111, 143, 123, 0.18), transparent 24rem),
    var(--bg);
  background-size: 38px 38px, 38px 38px, auto, auto, auto;
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

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

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

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 34px 0;
}

.side-panel {
  position: sticky;
  top: 34px;
  align-self: center;
  display: grid;
  gap: 38px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: inset 0 -10px 0 rgba(255, 255, 255, 0.08);
}

.brand-mark img {
  width: 30px;
  height: 30px;
}

.card-menu {
  display: grid;
  gap: 8px;
}

.menu-item {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.menu-item span {
  color: var(--line-strong);
  font-size: 0.78rem;
  font-weight: 800;
  transition: color 180ms ease;
}

.menu-item:hover,
.menu-item:focus-visible {
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  outline: 0;
}

.menu-item.is-active {
  background: var(--paper-strong);
  color: var(--ink);
  box-shadow: 0 12px 34px rgba(48, 45, 37, 0.08);
  transform: translateX(7px);
}

.menu-item.is-active span {
  color: var(--sage-dark);
}

.side-note {
  max-width: 190px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.card-stage {
  display: grid;
  min-height: calc(100vh - 68px);
  place-items: center;
}

.business-card {
  position: relative;
  overflow: hidden;
  width: min(790px, 100%);
  min-height: 600px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid rgba(223, 221, 211, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.92), rgba(255, 253, 248, 0.8)),
    var(--paper);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.business-card::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(201, 198, 186, 0.5);
  border-radius: 8px;
  content: "";
  pointer-events: none;
}

.business-card::after {
  position: absolute;
  top: -18%;
  right: -16%;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(111, 143, 123, 0.28);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.card-topline,
.card-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 32px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-footer {
  color: var(--ink);
}

.card-body {
  position: relative;
  z-index: 2;
  min-height: 448px;
  padding: 20px 32px 28px;
}

.content-panel {
  position: absolute;
  inset: 20px 32px 28px;
  display: grid;
  align-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(24px) scale(0.985);
  transition:
    opacity 360ms ease,
    visibility 360ms ease,
    transform 360ms ease;
}

.content-panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.scrollable-panel {
  align-content: start;
  overflow-y: auto;
  padding-right: 12px;
  scrollbar-color: var(--sage) rgba(223, 221, 211, 0.5);
  scrollbar-width: thin;
}

.scrollable-panel::-webkit-scrollbar {
  width: 8px;
}

.scrollable-panel::-webkit-scrollbar-track {
  background: rgba(223, 221, 211, 0.45);
  border-radius: 99px;
}

.scrollable-panel::-webkit-scrollbar-thumb {
  background: var(--sage);
  border-radius: 99px;
}

.contact-panel {
  align-content: start;
  overflow-y: auto;
  padding-top: 8px;
  padding-right: 12px;
  scrollbar-color: var(--sage) rgba(223, 221, 211, 0.5);
  scrollbar-width: thin;
}

.contact-panel h2 {
  font-size: 2.55rem;
}

.contact-panel::-webkit-scrollbar {
  width: 8px;
}

.contact-panel::-webkit-scrollbar-track {
  background: rgba(223, 221, 211, 0.45);
  border-radius: 99px;
}

.contact-panel::-webkit-scrollbar-thumb {
  background: var(--sage);
  border-radius: 99px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sage-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 20px;
  font-size: 4rem;
  line-height: 0.9;
  letter-spacing: 0;
}

.start-title {
  margin-top: 10px;
  font-size: 3.5rem;
}

h2 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: 0;
}

.lead,
.content-panel p {
  max-width: 590px;
  color: var(--muted);
  font-size: 1rem;
}

.lead {
  font-size: 1.15rem;
}

.text-scroll {
  display: grid;
  gap: 14px;
  padding-bottom: 10px;
}

.text-scroll p {
  margin-bottom: 0;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
  margin-top: 32px;
}

.quick-grid span {
  min-height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.clean-list {
  display: grid;
  gap: 14px;
  max-width: 630px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.clean-list strong {
  color: var(--ink);
}

.clean-list span {
  color: var(--muted);
}

.offer-stack {
  display: grid;
  gap: 10px;
  max-width: 620px;
  margin-top: 12px;
}

.offer-stack div {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
}

.offer-stack span {
  color: var(--gold);
  font-weight: 900;
}

.offer-stack p {
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 700;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin-top: 24px;
}

.contact-link {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  padding: 12px;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  border-color: var(--sage);
  background: #ffffff;
  outline: 0;
  transform: translateY(-2px);
}

.contact-link span {
  grid-row: span 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 900;
}

.contact-link strong {
  align-self: end;
  color: var(--ink);
  font-size: 0.92rem;
}

.contact-link small {
  align-self: start;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-mark {
  position: absolute;
  right: 34px;
  bottom: 68px;
  z-index: 1;
  width: min(230px, 34%);
  opacity: 0.18;
  pointer-events: none;
}

@media (max-width: 900px) {
  .page-shell {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 20px;
    padding: 22px 0;
  }

  .side-panel {
    position: static;
    gap: 16px;
  }

  .card-menu {
    display: flex;
    overflow-x: auto;
    padding: 4px 0 8px;
    scrollbar-width: none;
  }

  .card-menu::-webkit-scrollbar {
    display: none;
  }

  .menu-item {
    width: auto;
    min-width: max-content;
  }

  .menu-item.is-active {
    transform: translateY(-2px);
  }

  .side-note {
    display: none;
  }

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

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 28px, 1180px);
  }

  .business-card {
    min-height: 720px;
  }

  .card-topline,
  .card-footer {
    padding: 22px;
  }

  .card-body {
    min-height: 580px;
    padding: 12px 22px 22px;
  }

  .content-panel {
    inset: 12px 22px 22px;
    align-content: start;
    padding-top: 18px;
  }

  h1 {
    font-size: 3rem;
  }

  .start-title {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .contact-panel h2 {
    font-size: 1.82rem;
  }

  .quick-grid,
  .clean-list li,
  .offer-stack div,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .card-mark {
    width: 180px;
    right: 18px;
    bottom: 54px;
  }
}

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