:root {
  --ink: #17211f;
  --muted: #5b6661;
  --paper: #fbfbf7;
  --panel: #ffffff;
  --teal: #0e6065;
  --teal-dark: #103f45;
  --copper: #b86f34;
  --sun: #f5c858;
  --line: #d9ded8;
  --shadow: 0 18px 50px rgba(14, 34, 34, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(251, 251, 247, 0.9);
  border-bottom: 1px solid rgba(217, 222, 216, 0.78);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(16, 63, 69, 0.22);
}

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

.brand strong {
  font-size: 1rem;
  line-height: 1.1;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: #26312e;
  font-size: 0.94rem;
  font-weight: 650;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--teal);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  background: #fff;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: min(760px, 78svh);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  object-position: center;
  z-index: -3;
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(10, 25, 24, 0.88) 0%, rgba(15, 45, 45, 0.7) 40%, rgba(15, 45, 45, 0.12) 78%),
    linear-gradient(0deg, rgba(12, 34, 33, 0.5), rgba(12, 34, 33, 0.05));
}

.hero-content {
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  padding: 76px 0;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--copper);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--sun);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-size: 8.7rem;
  line-height: 0.85;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 670px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.24rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #10211f;
  background: var(--sun);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.1);
}

.button.outline {
  color: var(--teal-dark);
  border-color: var(--teal);
  background: transparent;
}

.button:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.inline-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--teal);
  font-weight: 850;
  text-decoration: none;
}

.inline-link:hover {
  color: var(--copper);
}

.audience-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.audience-strip span {
  display: grid;
  place-items: center;
  min-height: 74px;
  padding: 14px;
  background: #fff;
  color: #2d3835;
  font-weight: 800;
  text-align: center;
}

.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(56px, 9vw, 104px) 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
}

.intro p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1.3rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0;
  font-size: 3.8rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.topic-grid,
.review-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.topic-card,
.review-card,
.guide-list article,
.project-timeline article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(22, 36, 32, 0.07);
}

.topic-card {
  min-height: 250px;
  padding: 24px;
}

.topic-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 36px;
  color: #fff;
  background: var(--teal);
  font-size: 1.28rem;
}

.topic-card h3,
.guide-list h3,
.review-card h3,
.project-timeline h3,
.feature-guide h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.24;
}

.topic-card p,
.guide-list p,
.review-card p,
.project-timeline p,
.feature-guide p,
.contact-section p {
  margin: 0;
  color: var(--muted);
}

.guide-band {
  width: 100%;
  max-width: none;
  padding-right: max(18px, calc((100% - 1160px) / 2));
  padding-left: max(18px, calc((100% - 1160px) / 2));
  background: #e9f1ed;
  border-block: 1px solid var(--line);
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 1.05fr);
  gap: 18px;
}

.feature-guide {
  min-height: 390px;
  padding: clamp(26px, 4vw, 44px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(16, 63, 69, 0.96), rgba(14, 96, 101, 0.88)),
    linear-gradient(45deg, transparent 0 50%, rgba(245, 200, 88, 0.18) 50% 100%);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-guide .label {
  width: fit-content;
  margin-bottom: 72px;
  padding: 6px 10px;
  color: #10211f;
  background: var(--sun);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.feature-guide h3 {
  font-size: 2.9rem;
}

.feature-guide p {
  color: rgba(255, 255, 255, 0.82);
}

.text-link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--sun);
  font-weight: 850;
  text-decoration: none;
}

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

.guide-list article {
  padding: 24px;
}

.article-preview {
  border-bottom: 1px solid var(--line);
}

.article-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.article-teaser,
.article-card {
  display: block;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(22, 36, 32, 0.07);
}

.article-teaser {
  min-height: 230px;
  padding: 26px;
}

.article-teaser span,
.article-meta {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.article-teaser h3,
.article-card h3 {
  margin: 0 0 10px;
  font-size: 1.24rem;
  line-height: 1.24;
}

.article-teaser p,
.article-card p {
  margin: 0;
  color: var(--muted);
}

.article-teaser:hover,
.article-card:hover {
  border-color: rgba(14, 96, 101, 0.45);
  transform: translateY(-2px);
}

.review-grid {
  grid-template-columns: repeat(3, 1fr);
}

.review-card {
  min-height: 230px;
  padding: 26px;
}

.review-card span {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.projects {
  border-top: 1px solid var(--line);
}

.project-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}

.project-timeline article {
  position: relative;
  min-height: 240px;
  padding: 28px;
  overflow: hidden;
}

.project-timeline strong {
  display: block;
  margin-bottom: 46px;
  color: rgba(184, 111, 52, 0.5);
  font-size: 3.8rem;
  line-height: 0.85;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(28px, 7vw, 88px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.contact-section h2 {
  margin: 0 0 18px;
  font-size: 3.65rem;
  line-height: 1.04;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 4vw, 34px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.embedded-form {
  display: grid;
  gap: 14px;
}

.compact-form {
  margin-top: 2px;
}

.contact-form label,
.embedded-form label {
  display: grid;
  gap: 7px;
  color: #35413e;
  font-size: 0.86rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea,
.embedded-form input,
.embedded-form textarea {
  width: 100%;
  border: 1px solid #cbd3ce;
  border-radius: 6px;
  padding: 13px 12px;
  color: var(--ink);
  background: #fbfcfa;
  font: inherit;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.embedded-form input:focus,
.embedded-form textarea:focus {
  outline: 3px solid rgba(245, 200, 88, 0.45);
  border-color: var(--teal);
}

.contact-form .button.primary,
.embedded-form .button.primary {
  width: fit-content;
  border: 0;
}

.contact-form .button,
.embedded-form .button {
  width: fit-content;
}

.form-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.status-message {
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: #26312e;
  background: #f5f7f3;
}

.status-message p {
  margin: 0;
}

.status-message p + p {
  margin-top: 6px;
}

.status-message.success {
  border-color: rgba(14, 96, 101, 0.35);
  background: #e9f1ed;
}

.status-message.error {
  border-color: rgba(184, 111, 52, 0.55);
  background: #fff3e8;
}

.secure-contact {
  min-height: 680px;
}

.secure-contact h1 {
  margin: 0 0 18px;
  font-size: 3.65rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.78);
  background: #15211f;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.page-hero {
  display: grid;
  align-items: end;
  min-height: 430px;
  padding: 80px max(18px, calc((100% - 1160px) / 2));
  color: #fff;
  background:
    linear-gradient(90deg, rgba(16, 63, 69, 0.95), rgba(16, 63, 69, 0.68)),
    url("assets/glazingstar-hero.jpg") center / cover;
}

.page-hero h1,
.article-header h1 {
  max-width: 960px;
  margin: 0;
  font-size: 4.4rem;
  line-height: 0.98;
}

.page-hero p:last-child,
.article-header p:last-child {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.18rem;
}

.article-index {
  padding-top: 76px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.article-card {
  min-height: 260px;
  padding: 28px;
}

.article-shell {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.article-header {
  padding: 22px 0 46px;
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  color: var(--ink);
}

.article-header p:last-child {
  color: var(--muted);
}

.article-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 760px);
  gap: clamp(32px, 7vw, 88px);
  align-items: start;
  padding-top: 42px;
}

.article-aside {
  position: sticky;
  top: 96px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(22, 36, 32, 0.07);
}

.article-aside strong {
  display: block;
  margin-bottom: 10px;
}

.article-aside p {
  margin: 0;
  color: var(--muted);
}

.article-body {
  font-size: 1.06rem;
}

.article-body h2 {
  margin: 0 0 14px;
  padding-top: 8px;
  font-size: 2rem;
  line-height: 1.16;
}

.article-body p,
.article-body ul {
  margin: 0 0 28px;
  color: #46524e;
}

.article-body ul {
  padding-left: 22px;
}

.article-body li + li {
  margin-top: 10px;
}

.note-band {
  margin-top: 34px;
  padding: 22px;
  background: #e9f1ed;
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  color: #26312e;
}

.note-band strong {
  display: block;
  margin-bottom: 8px;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    top: 72px;
    right: 18px;
    left: 18px;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 13px 10px;
  }

  .audience-strip,
  .topic-grid,
  .review-grid,
  .article-teaser-grid,
  .project-timeline,
  .article-grid,
  .intro,
  .guide-layout,
  .contact-section {
    grid-template-columns: 1fr 1fr;
  }

  .intro,
  .guide-layout,
  .contact-section,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
  }

  h1 {
    font-size: 6.2rem;
  }

  .section-heading h2,
  .contact-section h2,
  .page-hero h1,
  .article-header h1 {
    font-size: 3rem;
  }

  .feature-guide h3 {
    font-size: 2.35rem;
  }

  .hero-copy,
  .intro p:last-child {
    font-size: 1.12rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 66px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 74svh;
  }

  .hero-content {
    width: min(100% - 32px, 680px);
    margin-inline: auto;
    padding: 52px 0;
  }

  h1 {
    font-size: 4.5rem;
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .audience-strip,
  .topic-grid,
  .review-grid,
  .article-teaser-grid,
  .article-grid,
  .project-timeline {
    grid-template-columns: 1fr;
  }

  .audience-strip span {
    min-height: 54px;
  }

  .feature-guide .label {
    margin-bottom: 44px;
  }

  .section-heading h2,
  .contact-section h2,
  .page-hero h1,
  .article-header h1 {
    font-size: 2.25rem;
  }

  .feature-guide h3 {
    font-size: 1.9rem;
  }

  .page-hero {
    min-height: 360px;
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .article-shell {
    padding-top: 42px;
    padding-bottom: 68px;
  }
}
