:root {
  --black: #050505;
  --ink: #171717;
  --muted: #666666;
  --line: #dedede;
  --white: #ffffff;
  --soft: #f4f4f4;
  --red: #e30613;
  --red-dark: #b5000b;
  --radius: 8px;
  --section-x: clamp(20px, 5vw, 72px);
  --section-y: clamp(64px, 8vw, 124px);
  --max: 1240px;
  --font: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0;
}

body.not-found-page {
  background: var(--black);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px var(--section-x);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand,
.main-nav,
.header-contact {
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  font-size: clamp(18px, 2.1vw, 24px);
  font-weight: 800;
  text-transform: uppercase;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 32px;
  padding: 5px 8px;
  color: var(--white);
  background: var(--red);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 36px);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.main-nav a,
.header-contact {
  position: relative;
  padding: 8px 0;
}

.main-nav a::after,
.header-contact::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.header-contact:hover::after,
.header-contact:focus-visible::after {
  transform: scaleX(1);
}

.header-contact {
  justify-self: end;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.section-inner {
  width: calc(100% - (var(--section-x) * 2));
  width: min(100% - (var(--section-x) * 2), var(--max));
  margin-inline: auto;
}

.section-dark {
  color: var(--white);
  background: var(--black);
}

.section-light {
  color: var(--ink);
  background: var(--white);
}

.section-red {
  color: var(--white);
  background: var(--red);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("assets/hero-ai-marketing.png");
  background-position: center;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.86) 34%, rgba(0, 0, 0, 0.42) 70%, rgba(0, 0, 0, 0.76) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.05) 34%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-inner {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 48px;
  padding-top: clamp(112px, 14vh, 180px);
  padding-bottom: clamp(36px, 6vh, 72px);
}

.hero-copy {
  align-self: center;
  width: min(790px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.section-kicker-dark {
  color: var(--white);
}

.section-red .section-kicker {
  color: var(--white);
}

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

h1 {
  margin-bottom: 24px;
  max-width: 9ch;
  font-size: clamp(76px, 15vw, 190px);
  font-weight: 900;
  line-height: 0.84;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(38px, 7vw, 88px);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 760px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(21px, 3.1vw, 36px);
  line-height: 1.08;
}

.hero-actions,
.direct-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 15px 22px;
  border: 2px solid currentColor;
  border-radius: 0;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

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

.button-primary {
  color: var(--white);
  border-color: var(--red);
  background: var(--red);
}

.button-primary:hover,
.button-primary:focus-visible {
  border-color: var(--white);
  background: var(--red-dark);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.76);
  background: rgba(0, 0, 0, 0.16);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--black);
  background: var(--white);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.hero-proof div,
.proof-strip div {
  min-width: 0;
  padding: clamp(18px, 3vw, 30px);
}

.hero-proof div + div,
.proof-strip div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-proof strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}

.hero-proof span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  text-transform: uppercase;
}

.statement,
.products,
.services,
.resident,
.portal,
.contact {
  padding-block: var(--section-y);
}

.statement-grid {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(280px, 2.3fr) minmax(260px, 1fr);
  gap: clamp(24px, 4vw, 62px);
  align-items: start;
}

.statement-grid h2 {
  margin-bottom: 0;
}

.statement-grid p:last-child,
.section-heading p,
.service-grid p,
.resident-grid p,
.portal-grid p,
.contact-copy p,
.product-card p {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.22;
}

.section-dark .section-heading p,
.section-dark .portal-grid p,
.section-dark .product-card p {
  color: rgba(255, 255, 255, 0.7);
}

.section-heading {
  width: min(920px, 100%);
  margin-bottom: clamp(36px, 6vw, 72px);
}

.section-heading-wide {
  width: min(1100px, 100%);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-card {
  min-width: 0;
  padding: clamp(26px, 4vw, 54px);
  background: var(--black);
}

.product-card + .product-card {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.product-card-light {
  color: var(--black);
  background: var(--white);
}

.product-card-light p {
  color: var(--muted);
}

.product-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.product-topline h3 {
  margin-bottom: 0;
}

.product-topline a {
  flex: 0 0 auto;
  padding-top: 6px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  font-weight: 700;
}

.product-card-light .feature-list li {
  color: var(--ink);
}

.feature-list li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 10px;
  height: 10px;
  content: "";
  background: var(--red);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.proof-strip span {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.proof-strip strong {
  display: block;
  color: var(--white);
  font-size: clamp(21px, 2.2vw, 30px);
  line-height: 1.05;
  text-transform: uppercase;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--black);
}

.service-grid article {
  min-width: 0;
  padding: clamp(24px, 3vw, 38px) clamp(28px, 3.6vw, 52px) 0 0;
}

.service-grid article + article {
  padding-left: clamp(22px, 3vw, 38px);
  border-left: 1px solid var(--line);
}

.service-number {
  display: block;
  margin-bottom: 42px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.service-grid h3 {
  max-width: 100%;
  font-size: clamp(22px, 2.05vw, 30px);
  overflow-wrap: normal;
  word-break: normal;
}

.resident-grid {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(320px, 2fr) minmax(260px, 1fr);
  gap: clamp(24px, 4vw, 62px);
  align-items: start;
}

.resident-grid h2 {
  margin-bottom: 0;
}

.resident-grid p:last-child {
  color: rgba(255, 255, 255, 0.86);
}

.portal-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(32px, 6vw, 92px);
  align-items: start;
}

.portal-form,
.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.05);
}

.contact-form {
  border-color: var(--line);
  background: var(--soft);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: inherit;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 14px;
  color: var(--black);
  background: var(--white);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
.button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(227, 6, 19, 0.42);
  outline-offset: 3px;
}

.portal-form input {
  border-color: rgba(255, 255, 255, 0.32);
}

.consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.3;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--red);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
}

.form-message.success-message {
  color: #126b32;
}

.portal .form-message.success-message,
.portal .form-message {
  color: #ff6b73;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  text-transform: none;
}

.direct-contacts {
  margin-top: 34px;
}

.direct-contacts a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 12px 16px;
  border: 2px solid var(--black);
  font-weight: 900;
  text-transform: uppercase;
}

.direct-contacts a:hover,
.direct-contacts a:focus-visible {
  color: var(--white);
  background: var(--black);
}

.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background: var(--black);
}

.not-found {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-block: var(--section-y);
}

.not-found-inner {
  display: grid;
  justify-items: start;
  gap: 22px;
}

.not-found .brand {
  margin-bottom: clamp(30px, 7vw, 88px);
}

.not-found h1 {
  max-width: 8ch;
  margin-bottom: 0;
  font-size: clamp(64px, 12vw, 148px);
}

.not-found p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.1;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-top: 6px;
  }

  .header-contact {
    font-size: 13px;
  }

  .hero-inner {
    padding-top: 142px;
  }

  .statement-grid,
  .resident-grid,
  .portal-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 0;
  }

  .service-grid article:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --section-x: 18px;
    --section-y: 58px;
  }

  .site-header {
    gap: 12px;
    padding-block: 12px;
  }

  .brand {
    font-size: 18px;
  }

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

  .header-contact {
    max-width: 150px;
    overflow-wrap: anywhere;
    text-align: right;
  }

  .main-nav {
    gap: 16px;
    font-size: 12px;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-media {
    background-position: 62% center;
  }

  .hero-inner {
    min-height: 100vh;
    min-height: 100svh;
    gap: 28px;
    padding-top: 136px;
    padding-bottom: 28px;
  }

  h1 {
    font-size: clamp(64px, 19vw, 96px);
  }

  h2 {
    font-size: clamp(34px, 11vw, 58px);
  }

  .hero-lead {
    font-size: clamp(20px, 6vw, 28px);
  }

  .button {
    width: 100%;
  }

  .hero-proof,
  .product-grid,
  .proof-strip,
  .service-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-proof div + div,
  .proof-strip div + div,
  .product-card + .product-card,
  .service-grid article + article {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
  }

  .service-grid article + article {
    padding-left: 0;
    border-top-color: var(--line);
  }

  .service-number {
    margin-bottom: 18px;
  }

  .product-topline {
    display: grid;
  }

  .portal-form,
  .contact-form {
    padding: 18px;
  }

  .direct-contacts a {
    width: 100%;
    justify-content: center;
  }

  .footer-inner {
    display: grid;
  }
}
