:root {
  --ink: #171b1d;
  --dark: #071712;
  --cream: #f2efe7;
  --paper: #fffdf8;
  --gold: #c89b57;
  --muted: #6f7777;
  --line: rgba(23, 27, 29, 0.13);

  /* Shared type scale */
  --text-caption: 0.6875rem;
  --text-label: 0.75rem;
  --text-ui: 0.875rem;
  --text-body-sm: 0.9375rem;
  --text-body: 1rem;
  --text-title: 1.375rem;
  --text-display-sm: clamp(2.75rem, 4.6vw, 4.25rem);
  --text-display-lg: clamp(4.875rem, 10.2vw, 9.375rem);
  --text-statement: clamp(2.375rem, 4.15vw, 3.8125rem);

  /* Shared rhythm and control scale */
  --leading-tight: 1.05;
  --leading-body: 1.65;
  --control-height: 3rem;
  --control-radius: 0.375rem;
  --control-pad-x: 1rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: var(--text-body);
  line-height: var(--leading-body);
}
button, input, select {
  font: inherit;
  font-size: var(--text-ui);
  line-height: 1.2;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 74px;
  padding: 0 clamp(22px, 4vw, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: var(--text-body-sm); line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.brand-mark {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: var(--text-ui);
}
.site-header nav { display: flex; align-items: center; gap: 42px; font-size: var(--text-ui); line-height: 1; font-weight: 700; }
.site-header nav a { position: relative; padding: 8px 0; }
.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: white;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}
.site-header nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.menu-button { display: none; }

.hero {
  min-height: 720px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: white;
  padding: 138px clamp(28px, 4.8vw, 72px) 88px;
  background:
    linear-gradient(90deg, rgba(3,9,10,.98) 0%, rgba(3,9,10,.9) 32%, rgba(3,9,10,.32) 69%, rgba(3,9,10,.18) 100%),
    linear-gradient(0deg, rgba(3,9,10,.62), transparent 40%),
    url('assets/listingdeck-hero.webp') center 44% / cover no-repeat;
}

[hidden] { display: none !important; }
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 145px;
  background: linear-gradient(to bottom, transparent, rgba(242,239,231,.92));
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; width: min(810px, 75vw); margin-bottom: 42px; }
.kicker { margin: 0 0 12px; font-size: var(--text-caption); line-height: 1.2; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.gold { color: var(--gold); }
.hero h1 { margin: 0; font-size: var(--text-display-lg); line-height: .86; letter-spacing: -.075em; font-weight: 800; }
.hero-copy { max-width: 610px; margin: 26px 0 25px; font-size: clamp(1.0625rem, 1.6vw, 1.375rem); line-height: 1.45; letter-spacing: .01em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.button { min-height: var(--control-height); padding: 0 1.25rem; border-radius: var(--control-radius); display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: var(--text-ui); line-height: 1; font-weight: 800; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-light { background: var(--paper); color: var(--ink); }
.button-ghost { background: rgba(255,255,255,.08); color: white; border: 1px solid rgba(255,255,255,.32); backdrop-filter: blur(10px); }
.scroll-cue { position: absolute; z-index: 3; right: 38px; bottom: 36px; font-size: var(--text-caption); line-height: 1; text-transform: uppercase; letter-spacing: .15em; display: flex; gap: 10px; align-items: center; }

.section { padding: 72px clamp(28px, 7.6vw, 116px); }
.company { background: var(--cream); }
.two-column { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(54px, 10vw, 160px); }
.intro-grid h2, .suite-heading h2, .market-grid h2, .contact-grid h2 {
  margin: 0;
  font-size: var(--text-display-sm);
  line-height: .96;
  letter-spacing: -.05em;
  font-weight: 800;
}
.body-copy { color: var(--muted); font-size: var(--text-body); line-height: var(--leading-body); }
.body-copy p:first-child { margin-top: 22px; }
.body-copy p + p { margin-top: 19px; }
.suite-heading { margin-top: 74px; max-width: 930px; }
.suite-heading h2 { max-width: 880px; }

.product-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: white;
  border-radius: 7px 7px 0 0;
  overflow: hidden;
  box-shadow: 0 28px 58px rgba(20,24,22,.12);
}
.product-card {
  min-height: 320px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  border: 0;
  border-right: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  color: var(--ink);
  padding: 30px 28px 34px;
  cursor: pointer;
  transition: color .25s ease, background .25s ease;
}
.product-card:last-child { border-right: 0; }
.product-card.active { color: white; background: linear-gradient(145deg, #173f34, #071712); }
.product-number { width: 36px; height: 36px; border-radius: 5px; background: #0a3a30; color: white; display: grid; place-items: center; font-size: var(--text-caption); line-height: 1; font-weight: 800; margin-bottom: 44px; }
.product-card.active .product-number { background: white; color: #0a3a30; }
.product-eyebrow { font-size: var(--text-caption); line-height: 1.2; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.product-card.active .product-eyebrow, .product-card.active .product-summary { color: rgba(255,255,255,.68); }
.product-card strong { max-width: 14ch; font-size: var(--text-title); line-height: var(--leading-tight); letter-spacing: -.025em; margin-bottom: 14px; }
.product-summary { color: var(--muted); font-size: var(--text-body-sm); line-height: 1.55; }
.product-arrow { position: absolute; right: 25px; top: 31px; font-size: 1rem; opacity: 0; transition: opacity .2s ease; }
.product-card:hover .product-arrow, .product-card.active .product-arrow { opacity: 1; }
.product-detail { margin: 0; width: 100%; min-height: 78px; padding: 20px 28px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 24px; color: var(--muted); background: rgba(255,255,255,.72); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 7px 7px; font-size: var(--text-body-sm); line-height: 1.55; box-shadow: 0 24px 46px rgba(20,24,22,.08); }
.product-detail span { flex: 0 0 auto; color: var(--gold); font-weight: 800; font-size: var(--text-caption); line-height: 1.2; margin-top: 3px; }
.product-detail p { margin: 0; }

.belief { background: var(--dark); color: white; padding: 78px clamp(28px, 15.4vw, 235px); }
.belief-inner { max-width: 1010px; }
.belief blockquote { margin: 16px 0 0; font-size: var(--text-statement); line-height: 1.08; letter-spacing: -.025em; font-weight: 400; color: #e5e7e5; }

.markets-section { padding-top: 92px; padding-bottom: 82px; }
.market-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; }
.market-grid h2 { max-width: 620px; }
.market-cloud { width: 100%; counter-reset: markets; border-bottom: 1px solid rgba(23,27,29,.2); }
.market-cloud span { min-height: 3.6rem; counter-increment: markets; border-top: 1px solid rgba(23,27,29,.2); display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; align-items: center; gap: 12px; color: var(--ink); font-size: var(--text-body); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.market-cloud span::before { content: "0" counter(markets); color: var(--gold); font-size: var(--text-caption); font-weight: 800; letter-spacing: .06em; }
.market-cloud span::after { content: "↗"; color: #909793; font-size: var(--text-ui); font-weight: 400; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: clamp(48px, 8vw, 120px); align-items: center; margin-top: 108px; padding-top: 88px; border-top: 1px solid rgba(23,27,29,.13); }
.contact-grid h2 { max-width: 700px; }
.muted-kicker { color: #6c7474; }
.contact-copy { max-width: 610px; margin-top: 18px; }
.contact-meta { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.contact-meta span { min-height: 52px; border-top: 2px solid var(--gold); padding: 12px 8px 0 0; color: #5f6866; font-size: var(--text-body-sm); line-height: 1.35; }

.contact-form { min-height: 480px; background: #fffaf1; border: 1px solid rgba(70,64,52,.14); border-radius: 7px; padding: 32px; box-shadow: 0 28px 56px rgba(28,27,23,.11); display: flex; flex-direction: column; justify-content: center; }
.form-heading { display: flex; justify-content: space-between; margin-bottom: 20px; color: #6c7474; font-size: var(--text-caption); line-height: 1.2; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.contact-form label { display: block; margin-bottom: 15px; font-size: var(--text-label); line-height: 1.2; font-weight: 800; color: #676b69; }
.contact-form input, .contact-form select { width: 100%; min-height: var(--control-height); margin-top: 7px; padding: 0 var(--control-pad-x); border: 1px solid #d6dad7; border-radius: var(--control-radius); background: white; color: var(--ink); outline: none; }
.contact-form input:focus, .contact-form select:focus { border-color: #0d4034; box-shadow: 0 0 0 3px rgba(13,64,52,.09); }
.optional { float: right; color: #a0a4a1; font-weight: 400; }
.submit-button { min-height: var(--control-height); padding: 0 var(--control-pad-x); border: 0; border-radius: var(--control-radius); color: white; background: #0b4034; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: var(--text-ui); line-height: 1; font-weight: 800; cursor: pointer; transition: background .2s ease; }
.submit-button:hover { background: #082f27; }
.privacy-note { margin: 11px 0 0; text-align: center; color: #999d99; font-size: var(--text-caption); line-height: 1.4; }
.success-message { text-align: center; padding: 30px; }
.success-message > span { width: 45px; height: 45px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; background: #0b4034; color: white; }
.success-message h3 { margin: 0 0 10px; font-size: 1.875rem; line-height: var(--leading-tight); letter-spacing: -.04em; }
.success-message p { margin: 0 auto 24px; max-width: 330px; color: var(--muted); font-size: var(--text-body-sm); line-height: 1.6; }
.success-message button { min-height: var(--control-height); padding: 0 var(--control-pad-x); border: 0; background: transparent; color: #0b4034; font-size: var(--text-ui); line-height: 1; font-weight: 800; text-decoration: underline; cursor: pointer; }

footer { min-height: 82px; padding: 0 clamp(28px, 4vw, 60px); background: #080e0f; color: white; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; font-size: var(--text-label); line-height: 1.35; }
footer p { color: #a8afad; }
footer > a:last-child { justify-self: end; color: #a8afad; }
.footer-brand .brand-mark { width: 25px; height: 25px; }

@media (max-width: 900px) {
  .hero { min-height: 680px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card:nth-child(2) { border-right: 0; }
  .product-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { max-width: 650px; width: 100%; }
}

@media (max-width: 680px) {
  .site-header { height: 68px; }
  .menu-button { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.28); border-radius: 5px; background: rgba(0,0,0,.15); display: grid; place-content: center; gap: 6px; position: relative; z-index: 3; }
  .menu-button span { width: 17px; height: 1px; background: white; display: block; }
  .site-header nav { position: absolute; top: 0; right: 0; width: min(82vw, 340px); height: 100vh; padding: 105px 34px; background: #071712; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; font-size: var(--text-title); transform: translateX(100%); transition: transform .3s ease; box-shadow: -20px 0 50px rgba(0,0,0,.35); }
  .site-header nav.nav-open { transform: translateX(0); }
  .hero { min-height: 700px; padding: 130px 24px 72px; align-items: center; background-position: 57% 50%; }
  .hero-content { width: 100%; margin: 90px 0 0; }
  .hero h1 { font-size: clamp(3.875rem, 20vw, 5.875rem); }
  .hero-copy { font-size: 1rem; max-width: 470px; }
  .hero-actions { align-items: stretch; }
  .button { flex: 1 1 190px; }
  .scroll-cue { display: none; }
  .section { padding: 58px 24px; }
  .two-column { grid-template-columns: 1fr; gap: 26px; }
  .intro-grid h2, .suite-heading h2, .market-grid h2, .contact-grid h2 { font-size: clamp(2.625rem, 12vw, 3.75rem); }
  .body-copy p:first-child { margin-top: 0; }
  .suite-heading { margin-top: 62px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card, .product-card:nth-child(2) { min-height: 230px; border-right: 0; border-bottom: 1px solid var(--line); }
  .product-card:last-child { border-bottom: 0; }
  .product-number { margin-bottom: 25px; }
  .product-detail { margin-top: 20px; }
  .belief { padding: 60px 24px; }
  .belief blockquote { font-size: clamp(2.125rem, 9.5vw, 3rem); }
  .market-grid { gap: 42px; }
  .market-cloud span { min-height: 3.4rem; }
  .contact-grid { margin-top: 76px; padding-top: 64px; gap: 42px; }
  .contact-meta { grid-template-columns: 1fr; gap: 12px; }
  .contact-meta span { min-height: auto; }
  .contact-form { padding: 24px; min-height: 450px; }
  footer { padding: 24px; grid-template-columns: 1fr auto; }
  footer p { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .75s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
}
