:root {
  --up-navy: #001b32;
  --up-deep: #022037;
  --up-ink: #001b32;
  --up-red: #dc202d;
  --up-paper: #fbfaf7;
  --up-copy: #526677;
  --up-line: #dad7cf;
  --up-card-bg: #ffffff;
}

.up-page {
  width: 100%;
  overflow: hidden;
  color: var(--up-ink);
  background: var(--up-paper);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.up-page * {
  box-sizing: border-box;
}

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

.up-page a {
  text-decoration: none;
  color: inherit;
}

.up-symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.up-shell {
  width: min(92%, 1440px);
  margin: 0 auto;
}

/* ==========================================================================
   01 HERO
   ========================================================================== */
.up-hero {
  position: relative;
  min-height: clamp(500px, 40vw, 600px);
  height: clamp(500px, 40vw, 600px);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--up-deep);
  display: flex;
  align-items: center;
}

.up-hero-photo {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.up-hero-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(90deg, rgba(1, 29, 47, 0.96) 0%, rgba(1, 31, 51, 0.88) 32%, rgba(1, 32, 51, 0.45) 60%, rgba(1, 31, 50, 0.1) 100%),
              linear-gradient(180deg, rgba(0, 20, 34, 0.25) 0%, transparent 40%, rgba(0, 25, 40, 0.2) 100%);
}

.up-hero-copy {
  position: relative;
  z-index: 2;
  width: min(92%, 1440px);
  max-width: 680px;
  margin-left: max(32px, calc((100% - 1440px) / 2));
  margin-top: 10px;
}

.up-hero-kicker {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.up-hero h1 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(38px, 4.2vw, 68px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.06;
  text-transform: uppercase;
}

.up-hero-lead {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
  max-width: 560px;
}

.up-outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 50px;
  padding: 0 26px;
  color: #fff;
  border: 2px solid var(--up-red);
  background: rgba(1, 31, 49, 0.35);
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
}

.up-outline-button:hover {
  background: var(--up-red);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 32, 45, 0.4);
}

.up-outline-button span {
  font-size: 20px;
  font-weight: 300;
  transition: transform 0.25s ease;
}

.up-outline-button:hover span {
  transform: translateX(4px);
}

/* ==========================================================================
   02 PROCESS STRIP
   ========================================================================= */
.up-process {
  min-height: 76px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fbfaf7;
  border-bottom: 1px solid var(--up-line);
}

.up-process > div {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 12px;
  color: var(--up-ink);
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.up-process svg {
  width: 28px;
  height: 28px;
  stroke: var(--up-ink);
  stroke-width: 1.6;
  fill: none;
}

.up-process > div:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 25%;
  right: 0;
  width: 1px;
  height: 50%;
  background: var(--up-line);
}

/* ==========================================================================
   03 RESIDENTIAL SECTION
   ========================================================================== */
.up-residential {
  padding: 56px 0 44px;
  background: #fbfaf7;
}

.up-sec-title {
  position: relative;
  margin: 0 0 30px;
  padding-bottom: 17px;
  color: var(--up-ink);
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 900;
  text-align: center;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.up-sec-title::after,
.up-commercial h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 42px;
  height: 2px;
  background: var(--up-red);
  transform: translateX(-50%);
}

.up-residential-grid {
  display: grid;
  grid-template-columns: 31% 38% 31%;
  align-items: center;
  gap: 28px;
}

.up-res-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.up-res-copy h3 {
  margin: 0 0 6px;
  color: var(--up-red);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.up-res-copy p {
  margin: 0;
  color: var(--up-copy);
  font-size: 12px;
  line-height: 1.45;
}

.up-text-arrow-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Connectors */
.up-connector {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  color: var(--up-red);
}

.up-connector-right {
  margin-left: 6px;
}

.up-connector-left {
  margin-right: 6px;
}

.up-dot {
  width: 5px;
  height: 5px;
  background-color: var(--up-red);
  border-radius: 50%;
  flex-shrink: 0;
}

.up-line {
  width: 44px;
  height: 0;
  border-top: 1.5px dashed var(--up-red);
  flex-shrink: 0;
}

.up-arrow {
  font-size: 8px;
  color: var(--up-red);
  line-height: 1;
  flex-shrink: 0;
}

.up-connector-right .up-arrow {
  margin-left: -2px;
}

.up-connector-left .up-arrow {
  margin-right: -2px;
}

.up-card-frame {
  background: #ffffff;
  border: 1px solid var(--up-line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 27, 50, 0.03);
}

.up-res-photo {
  width: 100%;
  height: 215px;
  object-fit: cover;
}

.up-plan-card {
  background: #fbfaf7;
  border: 1px solid var(--up-line);
  border-radius: 8px;
  overflow: hidden;
  padding: 4px 6px;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 27, 50, 0.03);
}

.up-plan-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.up-res-center {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.up-res-center img {
  width: 100%;
  max-height: 490px;
  object-fit: contain;
}

/* Flow Bar */
.up-design-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  padding: 16px 24px;
  background: #ffffff;
  border: 1px solid var(--up-line);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 27, 50, 0.03);
}

.up-design-flow article {
  display: flex;
  align-items: center;
  gap: 12px;
}

.up-design-flow svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  stroke: var(--up-ink);
  stroke-width: 1.5;
  fill: none;
}

.up-design-flow h3 {
  margin: 0 0 3px;
  color: var(--up-red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.up-design-flow p {
  margin: 0;
  color: var(--up-copy);
  font-size: 11.5px;
  line-height: 1.35;
}

.up-flow-arrow {
  color: var(--up-ink);
  font-size: 20px;
  font-weight: 300;
  padding: 0 4px;
}

/* ==========================================================================
   04 COMMERCIAL & INDUSTRIAL (DARK NAVY)
   ========================================================================== */
.up-commercial {
  padding: 58px 0 54px;
  color: #fff;
  background: #022037;
}

.up-commercial h2 {
  position: relative;
  margin: 0 0 28px;
  padding-bottom: 17px;
  color: #fff;
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.up-commercial h2::after {
  left: 0;
  transform: none;
}

.up-commercial-grid {
  display: grid;
  grid-template-columns: 31% 38% 31%;
  align-items: center;
  gap: 28px;
}

.up-comm-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.up-comm-col h3 {
  margin: 0;
  color: var(--up-red);
  font-size: 16px;
  font-weight: 800;
}

.up-comm-text-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.up-comm-text-wrap p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  line-height: 1.45;
}

.up-comm-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.up-comm-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.up-comm-center {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.up-comm-center img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

/* ==========================================================================
   05 PUBLIC & STEEL SPECIALTIES
   ========================================================================== */
.up-specialties {
  padding: 56px 0;
  background: #fbfaf7;
}

.up-specialties-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.up-public-card,
.up-steel-card {
  display: flex;
  flex-direction: column;
}

.up-public-card h3,
.up-steel-card h3 {
  margin: 0 0 6px;
  color: var(--up-red);
  font-size: 17px;
  font-weight: 800;
}

.up-specialty-desc {
  margin: 0 0 16px;
  color: var(--up-copy);
  font-size: 12.5px;
  line-height: 1.45;
}

.up-public-visuals {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.up-public-photo-wrap {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--up-line);
  box-shadow: 0 2px 10px rgba(0, 27, 50, 0.03);
}

.up-public-photo-wrap img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.up-public-plans-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.up-public-plan-item {
  background: #fbfaf7;
  border: 1px solid var(--up-line);
  border-radius: 8px;
  padding: 8px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 27, 50, 0.03);
}

.up-public-plan-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.up-steel-visuals {
  display: grid;
  grid-template-columns: 46% 54%;
  gap: 12px;
}

.up-steel-detail-wrap {
  background: #fbfaf7;
  border: 1px solid var(--up-line);
  border-radius: 8px;
  padding: 8px;
  height: 352px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 27, 50, 0.03);
}

.up-steel-detail-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.up-steel-photos-wrap {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 352px;
}

.up-steel-thumb {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--up-line);
  box-shadow: 0 2px 10px rgba(0, 27, 50, 0.03);
}

.up-steel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   06 CTA SECTION
   ========================================================================== */
.up-cta {
  padding: 34px 0;
  background: #fbfaf7;
  border-top: 1px solid var(--up-line);
}

.up-cta-inner {
  display: grid;
  grid-template-columns: 46% 54%;
  align-items: center;
  gap: 32px;
}

.up-cta-copy {
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.up-cta-copy h2 {
  margin: 0 0 14px;
  color: var(--up-ink);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.up-cta-copy p {
  max-width: 500px;
  margin: 0 0 24px;
  color: var(--up-copy);
  font-size: 13.5px;
  line-height: 1.55;
}

.up-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 48px;
  padding: 0 28px;
  color: #fff !important;
  background: var(--up-red) !important;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 4px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(220, 32, 45, 0.35);
}

.up-cta-btn:hover {
  background: #bd1b26 !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 32, 45, 0.45);
}

.up-cta-btn span {
  font-size: 18px;
  font-weight: 300;
  transition: transform 0.25s ease;
}

.up-cta-btn:hover span {
  transform: translateX(4px);
}

.up-cta-visual {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--up-line);
  box-shadow: 0 4px 16px rgba(0, 27, 50, 0.05);
}

.up-cta-visual img {
  width: 100%;
  height: clamp(236px, 20vw, 300px);
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1100px) {
  .up-residential-grid,
  .up-commercial-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .up-res-center {
    order: -1;
  }
  .up-res-center img {
    max-height: 380px;
  }
  .up-comm-center {
    order: -1;
  }
  .up-comm-center img {
    max-height: 320px;
  }
  .up-design-flow {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .up-flow-arrow {
    display: none;
  }
  .up-specialties-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .up-cta-inner {
    grid-template-columns: 1fr;
  }
  .up-cta-copy {
    padding: 36px 0 24px;
  }
}

@media (max-width: 640px) {
  .up-process {
    grid-template-columns: repeat(2, 1fr);
  }
  .up-process > div:nth-child(2)::after {
    display: none;
  }
  .up-steel-visuals {
    grid-template-columns: 1fr;
  }
  .up-public-plans-wrap {
    grid-template-columns: 1fr;
  }
}
