:root {
  --ink: #101316;
  --panel: #171b1f;
  --panel-2: #20262c;
  --paper: #f8f8f6;
  --muted: #5d6670;
  --line: #dce1e5;
  --teal: #148d8d;
  --teal-dark: #0c5f60;
  --copper: #b66732;
  --gold: #d7a84a;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(16, 19, 22, 0.16);
  --type-small: 0.82rem;
  --type-body: 1rem;
  --type-card: 1.08rem;
  --type-heading: 1.72rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a { color: inherit; }

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 999;
  padding: 10px 14px;
  color: var(--white);
  background: var(--teal-dark);
}
.skip-link:focus { top: 12px; }

.screen-reader {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(22px, calc((100vw - 1180px) / 2));
  background: rgba(248, 248, 246, 0.94);
  border-bottom: 1px solid rgba(220, 225, 229, 0.9);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--copper));
  border-radius: 7px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: var(--type-body);
}

.brand small {
  color: var(--muted);
  font-size: var(--type-small);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  min-height: 38px;
  padding: 8px 11px;
  color: var(--ink);
  font-size: var(--type-small);
  text-decoration: none;
  border-radius: 7px;
}

.site-nav a:hover {
  color: var(--white);
  background: var(--ink);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
}

.menu-toggle span:not(.screen-reader) {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero,
.intro-band,
.property-callout,
.section-heading,
.portfolio-grid,
.feature-section,
.systems-section,
.contact-section,
.site-footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(340px, 0.97fr);
  gap: 32px;
  align-items: start;
  padding: 34px 0 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-size: var(--type-small);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 16px;
  max-width: 640px;
  font-size: var(--type-heading);
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: var(--type-heading);
  line-height: 1.22;
  font-weight: 650;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: var(--type-card);
  line-height: 1.25;
  font-weight: 650;
}

p {
  margin-bottom: 1rem;
}

.lede {
  max-width: 680px;
  color: #30383f;
  font-size: var(--type-body);
  line-height: 1.62;
}

.hero-actions,
.card-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.card-links a,
.link-strip a,
.footer-links a,
.opportunity-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  font-size: var(--type-small);
  text-decoration: none;
  border-radius: 7px;
}

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

.button.secondary,
.card-links a,
.link-strip a,
.opportunity-list a {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.button:hover,
.card-links a:hover,
.link-strip a:hover,
.opportunity-list a:hover {
  transform: translateY(-1px);
}

.hero-panel {
  padding: 12px;
  background: var(--panel);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 165px 165px;
  gap: 10px;
}

.panel-grid img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

.panel-grid .panel-photo {
  object-fit: cover;
  background: var(--panel-2);
}

.panel-grid .panel-logo {
  padding: 14px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.panel-note {
  display: grid;
  gap: 4px;
  padding: 16px 6px 4px;
  color: var(--white);
}

.panel-note span {
  color: #c5d1d3;
}

.intro-band {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: start;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-band p:last-child {
  margin-bottom: 0;
  color: #30383f;
  font-size: var(--type-body);
}

.link-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: min(1180px, calc(100% - 36px));
  margin: 28px auto 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.link-strip a {
  flex: 0 1 auto;
  background: var(--white);
  border-color: #30383f;
  border-width: 2px;
}

.property-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  margin-top: 26px;
  padding: 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--ink), #2b343a);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.property-callout .eyebrow {
  color: var(--gold);
}

.property-callout h2 {
  max-width: 760px;
  margin-bottom: 10px;
}

.property-callout p:not(.eyebrow) {
  max-width: 840px;
  margin-bottom: 0;
  color: #d5dcdf;
}

.property-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.property-actions .button.secondary {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
}

.section-heading {
  padding: 46px 0 20px;
}

.section-heading p {
  max-width: 760px;
  color: var(--muted);
}

.portfolio-grid {
  display: grid;
  gap: 18px;
  padding-bottom: 50px;
}

.portfolio-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(16, 19, 22, 0.08);
}

.portfolio-media {
  display: grid;
  place-items: center;
  min-height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, #20262c, #354149);
  border-radius: 6px;
}

.portfolio-media img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.portfolio-media.logo-media,
.portfolio-media.mark-media {
  padding: 26px;
  background: var(--white);
  border: 1px solid #d7ded8;
}

.portfolio-media.logo-media img,
.portfolio-media.mark-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: var(--white);
  border-radius: 4px;
}

.type-mark {
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--type-heading);
  font-weight: 800;
}

.portfolio-copy {
  padding: 4px 4px 2px 0;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--teal-dark);
  font-size: var(--type-small);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-topline strong {
  color: var(--copper);
  white-space: nowrap;
}

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

.feature-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  padding: 42px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.opportunity-list {
  display: grid;
  gap: 14px;
}

.opportunity-list article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 2px 16px;
  padding: 18px;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
}

.opportunity-list span {
  grid-row: span 3;
  color: var(--gold);
  font-weight: 800;
}

.opportunity-list p {
  color: #d5dcdf;
}

.opportunity-list a {
  justify-self: start;
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
}

.systems-section {
  padding: 48px 0;
}

.section-heading.compact {
  width: auto;
  margin: 0;
  padding: 0 0 24px;
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.systems-grid article {
  padding: 18px;
  background: #edf1ef;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.systems-grid strong {
  display: block;
  margin-bottom: 8px;
}

.systems-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 42px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.direct-email a {
  color: var(--teal-dark);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(16, 19, 22, 0.1);
}

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

label {
  display: grid;
  gap: 7px;
  color: #2d353b;
  font-size: var(--type-small);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  border: 1px solid #cbd3d8;
  border-radius: 7px;
  background: var(--paper);
}

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

.trap {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--teal-dark);
  font-weight: 700;
}

.form-status.error {
  color: #a33a22;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  gap: 30px;
  padding: 32px 0 46px;
  color: var(--white);
}

body::after {
  content: "";
  display: block;
  height: 0;
  background: var(--ink);
}

.site-footer::before {
  content: "";
  position: absolute;
}

.site-footer {
  width: 100%;
  max-width: none;
  margin-top: 20px;
  padding-left: max(18px, calc((100vw - 1180px) / 2));
  padding-right: max(18px, calc((100vw - 1180px) / 2));
  background: var(--ink);
}

.site-footer p {
  color: #d5dcdf;
}

.footer-links a {
  min-height: 34px;
  padding: 6px 9px;
  font-size: var(--type-small);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
  }
  .menu-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 18px;
    right: 18px;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }
  .site-nav.open {
    display: grid;
  }
  .site-nav a {
    justify-content: center;
  }
  .hero,
  .intro-band,
  .property-callout,
  .feature-section,
  .contact-section {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 0;
  }
  .property-actions {
    justify-content: flex-start;
  }
  .portfolio-card {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .systems-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 10px 14px;
  }
  .brand small {
    display: none;
  }
  .hero,
  .intro-band,
  .property-callout,
  .section-heading,
  .portfolio-grid,
  .feature-section,
  .systems-section,
  .contact-section {
    width: min(100% - 28px, 1180px);
  }
  h1,
  h2 {
    font-size: 1.52rem;
  }
  .lede {
    font-size: 1rem;
  }
  .panel-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 140px);
  }
  .portfolio-card,
  .form-grid,
  .systems-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-media,
  .portfolio-media img {
    min-height: 170px;
  }
  .card-topline {
    align-items: flex-start;
    flex-direction: column;
  }
  .button,
  .contact-form .button {
    width: 100%;
  }
}
