/* Epoxiec internal pages — shared visual system */
.service-page { background: #fff; }
.service-page .site-header { position: absolute; }
.service-page .site-header.is-scrolled { position: fixed; }

.service-hero {
  position: relative;
  display: grid;
  grid-template-rows: minmax(min-content, 1fr) auto;
  min-height: clamp(720px, 92svh, 820px);
  height: auto;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}
.service-hero-media,
.service-hero-media img,
.service-hero-overlay,
.service-hero-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.service-hero-media { inset: -7% 0; width: 100%; height: 114%; overflow: hidden; will-change: transform; }
.service-hero-media img { object-fit: cover; object-position: center; filter: saturate(.9) contrast(1.03); }
.service-hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7,18,33,.98) 0%, rgba(7,18,33,.91) 29%, rgba(7,18,33,.45) 58%, rgba(7,18,33,.10) 100%),
    linear-gradient(0deg, rgba(7,18,33,.88), transparent 48%);
}
.service-hero-grid {
  z-index: 2;
  opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(90deg, #000, transparent 68%);
}
.service-hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  min-height: auto;
  padding-top: 150px;
  padding-bottom: 56px;
}
.service-hero-copy { width: min(760px, 66vw); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 0 0 25px; color: rgba(255,255,255,.56); font-size: .72rem; font-weight: 740; letter-spacing: .08em; text-transform: uppercase; }
.breadcrumb a { color: var(--blue); }
.breadcrumb span[aria-hidden="true"] { opacity: .45; }
.service-hero h1 { max-width: 830px; margin: 0; font-size: clamp(3.2rem, 5vw, 5.3rem); font-weight: 760; letter-spacing: -.062em; line-height: .94; text-wrap: balance; }
.service-hero h1 span { color: var(--blue); }
.service-hero-lead { max-width: 650px; margin: 27px 0 0; color: rgba(255,255,255,.76); font-size: clamp(1rem, 1.3vw, 1.18rem); line-height: 1.65; }
.service-hero-meta { position: relative; inset: auto; z-index: 4; padding-bottom: 33px; }
.service-hero-meta-inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: var(--container); border-top: 1px solid rgba(255,255,255,.2); }
.service-hero-meta div { padding: 16px 25px 0 0; }
.service-hero-meta div + div { padding-left: 25px; border-left: 1px solid rgba(255,255,255,.16); }
.service-hero-meta small { display: block; color: var(--blue); font-size: .61rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.service-hero-meta strong { display: block; margin-top: 3px; font-size: .83rem; line-height: 1.35; }
.visual-disclaimer { position: absolute; z-index: 4; right: 22px; bottom: 18px; margin: 0; color: rgba(255,255,255,.48); font-size: .58rem; letter-spacing: .05em; }

.service-intro { padding-block: 120px; }
.service-intro-grid { display: grid; grid-template-columns: minmax(250px, .7fr) minmax(0, 1.3fr); gap: clamp(60px, 10vw, 150px); align-items: start; }
.service-kicker { position: sticky; top: 120px; }
.service-kicker h2 { margin: 0; font-size: clamp(2.65rem, 4.3vw, 4.8rem); font-weight: 735; letter-spacing: -.06em; line-height: .98; text-wrap: balance; }
.service-kicker p:last-child { max-width: 420px; margin: 26px 0 0; color: var(--muted); }
.service-intro-copy > p { margin: 0; color: #334157; font-size: clamp(1.1rem, 1.65vw, 1.45rem); line-height: 1.65; }
.benefit-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 48px; background: var(--line); border: 1px solid var(--line); }
.benefit { min-height: 190px; padding: 27px; background: var(--white); transition: transform .3s ease, background .3s ease; }
.benefit:hover { position: relative; transform: translateY(-5px); background: var(--paper); }
.benefit span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(51,139,244,.28); border-radius: 50%; color: var(--blue-strong); font-size: .7rem; font-weight: 800; }
.benefit h3 { margin: 32px 0 8px; color: var(--ink); font-size: 1.02rem; letter-spacing: -.02em; }
.benefit p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.6; }

.service-specs { position: relative; overflow: hidden; padding-block: 105px; color: var(--white); background: var(--ink); }
.service-specs::before { content: ""; position: absolute; width: 560px; height: 560px; top: -330px; right: -180px; border-radius: 50%; background: rgba(85,199,255,.18); filter: blur(70px); }
.service-specs-heading { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .7fr); gap: 70px; align-items: end; margin-bottom: 56px; }
.service-specs h2 { max-width: 740px; margin: 0; font-size: clamp(2.7rem, 4.6vw, 5rem); font-weight: 735; letter-spacing: -.06em; line-height: .98; text-wrap: balance; }
.service-specs-heading > p { margin: 0; color: rgba(255,255,255,.6); }
.spec-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.spec-card { min-height: 260px; padding: 25px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); }
.spec-icon { position: relative; display: block; width: 88px; height: 88px; margin-bottom: 46px; border: 1px solid rgba(85,199,255,.36); border-radius: 50%; }
.spec-icon::before, .spec-icon::after { content: ""; position: absolute; inset: 17px; border: 1px solid rgba(85,199,255,.54); transform: rotate(45deg); }
.spec-icon::after { inset: 31px; background: var(--blue); box-shadow: 0 0 22px rgba(85,199,255,.4); }
.spec-card:nth-child(2) .spec-icon { border-radius: 18px; transform: rotate(9deg); }
.spec-card:nth-child(3) .spec-icon::before { border-radius: 50%; }
.spec-card:nth-child(4) .spec-icon { border-radius: 55% 45% 58% 42% / 42% 60% 40% 58%; }
.spec-card h3 { margin: 0 0 9px; font-size: 1.05rem; }
.spec-card p { margin: 0; color: rgba(255,255,255,.54); font-size: .84rem; line-height: 1.6; }

.applications { padding-block: 120px; background: var(--paper); }
.applications-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: end; margin-bottom: 52px; }
.applications h2 { max-width: 730px; margin: 0; font-size: clamp(2.75rem, 4.7vw, 5rem); font-weight: 735; letter-spacing: -.06em; line-height: .98; text-wrap: balance; }
.applications-heading > p { max-width: 520px; margin: 0; color: var(--muted); }
.application-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.application-card { min-height: 230px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.64); transition: background .3s ease, transform .3s ease; }
.application-card:hover { position: relative; transform: translateY(-4px); background: #fff; box-shadow: 0 20px 45px rgba(7,18,33,.08); }
.application-card span { color: var(--blue-strong); font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
.application-card h3 { margin: 50px 0 8px; color: var(--ink); font-size: 1.18rem; letter-spacing: -.03em; }
.application-card p { margin: 0; color: var(--muted); font-size: .88rem; }

.service-process { padding-block: 120px; background: #fff; }
.process-layout { display: grid; grid-template-columns: minmax(310px, .82fr) minmax(0, 1.18fr); gap: clamp(55px, 9vw, 130px); }
.process-panel { position: sticky; top: 108px; min-height: 610px; padding: 38px; overflow: hidden; border-radius: 24px; color: #fff; background: linear-gradient(150deg, #071221, #123a59); }
.process-panel::before { content: ""; position: absolute; width: 340px; height: 340px; right: -130px; bottom: -100px; border-radius: 50%; border: 1px solid rgba(85,199,255,.28); box-shadow: 0 0 0 54px rgba(85,199,255,.05), 0 0 0 108px rgba(85,199,255,.03); }
.process-panel h2 { position: relative; max-width: 430px; margin: 0; font-size: clamp(2.65rem, 4vw, 4.4rem); font-weight: 735; letter-spacing: -.06em; line-height: .98; }
.process-panel-status { position: absolute; right: 38px; bottom: 38px; left: 38px; }
.process-panel--flooring::before { z-index: 1; }
.process-panel--flooring > .eyebrow, .process-panel--flooring > h2, .process-panel--flooring .process-panel-status { z-index: 3; }
.process-panel--flooring > .eyebrow { position: relative; }
.process-panel-media { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.process-panel-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,18,33,.96) 0%, rgba(7,18,33,.78) 28%, rgba(7,18,33,.3) 57%, rgba(7,18,33,.9) 100%), linear-gradient(90deg, rgba(7,18,33,.58), rgba(7,18,33,.08)); }
.process-panel-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; filter: saturate(.88) contrast(1.06); transform: scale(1.01); }
.process-panel-status small { color: var(--blue); font-size: .62rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.process-panel-status strong { display: block; margin-top: 9px; font-size: 1.15rem; }
.process-progress { height: 3px; margin-top: 18px; overflow: hidden; background: rgba(255,255,255,.16); }
.process-progress span { display: block; width: var(--stage, 25%); height: 100%; background: var(--blue); box-shadow: 0 0 16px var(--blue); transition: width .55s cubic-bezier(.2,.7,.2,1); }
.process-steps { padding: 35px 0 110px; }
.process-step { min-height: 280px; padding: 16px 0 56px 78px; border-left: 1px solid var(--line); opacity: .42; transition: opacity .4s ease, transform .4s ease; }
.process-step.is-active { opacity: 1; transform: translateX(12px); }
.process-step > span { display: grid; place-items: center; width: 48px; height: 48px; margin-left: -103px; border: 1px solid rgba(51,139,244,.36); border-radius: 50%; color: var(--blue-strong); background: #fff; font-size: .74rem; font-weight: 800; }
.process-step h3 { margin: 28px 0 12px; color: var(--ink); font-size: clamp(1.65rem, 2.5vw, 2.4rem); letter-spacing: -.045em; }
.process-step p { max-width: 600px; margin: 0; color: var(--muted); }

.service-faq { padding-block: 115px; background: var(--paper); }
.service-faq .faq-grid { align-items: start; }
.service-faq .faq-intro { position: sticky; top: 118px; }

.related { padding-block: 110px; color: #fff; background: var(--ink); }
.related-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 44px; }
.related h2 { max-width: 650px; margin: 0; font-size: clamp(2.6rem, 4vw, 4.4rem); font-weight: 735; letter-spacing: -.06em; line-height: .98; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-card { position: relative; min-height: 250px; padding: 26px; overflow: hidden; border: 1px solid rgba(255,255,255,.11); border-radius: 17px; background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.015)); transition: transform .3s ease, border-color .3s ease; }
.related-card:hover { transform: translateY(-7px); border-color: rgba(85,199,255,.55); }
.related-card small { color: var(--blue); font-size: .63rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.related-card strong { position: absolute; right: 25px; bottom: 25px; left: 25px; font-size: clamp(1.35rem, 2vw, 1.85rem); letter-spacing: -.035em; line-height: 1.1; }
.related-card span { position: absolute; top: 24px; right: 25px; color: var(--blue); font-size: 1.25rem; }

.contact-hero { min-height: clamp(650px, 74svh, 720px); height: auto; }
.contact-hero .service-hero-media img { object-position: 58% center; }
.contact-section { padding-block: 120px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(420px, 1.2fr); gap: clamp(50px, 9vw, 125px); align-items: start; }
.contact-copy { position: sticky; top: 116px; }
.contact-copy h2 { margin: 0; font-size: clamp(2.7rem, 4.5vw, 4.8rem); font-weight: 735; letter-spacing: -.06em; line-height: .98; }
.contact-copy > p { max-width: 490px; margin: 25px 0 0; color: var(--muted); }
.contact-direct { display: grid; gap: 10px; margin-top: 38px; }
.contact-direct a { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); font-weight: 750; }
.contact-direct a span { color: var(--blue-strong); }
.contact-form { padding: clamp(28px, 4vw, 50px); border-radius: 24px; background: var(--paper); box-shadow: 0 25px 70px rgba(7,18,33,.09); }
.contact-form h2 { margin: 0 0 8px; color: var(--ink); font-size: clamp(2rem, 3.5vw, 3.25rem); letter-spacing: -.055em; line-height: 1; }
.contact-form > p { margin: 0 0 32px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { color: #29364a; font-size: .76rem; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 13px 15px; border: 1px solid rgba(7,18,33,.15); border-radius: 9px; outline: 0; color: var(--ink); background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.field textarea { min-height: 135px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-strong); box-shadow: 0 0 0 3px rgba(51,139,244,.1); }
.form-help { margin: 16px 0 0; color: var(--muted); font-size: .74rem; }
.contact-form .button { margin-top: 24px; border: 0; cursor: pointer; }
.form-status { min-height: 24px; margin: 12px 0 0; color: #146540; font-size: .8rem; font-weight: 700; }
.office-section { padding-block: 110px; color: #fff; background: var(--ink); }
.office-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 45px; }
.office-heading h2 { margin: 0; font-size: clamp(2.7rem, 4.5vw, 4.8rem); font-weight: 735; letter-spacing: -.06em; line-height: .98; }
.office-heading p { margin: 0; color: rgba(255,255,255,.58); }
.office-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.office-card { min-height: 320px; padding: 32px; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); }
.office-card small { color: var(--blue); font-size: .66rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.office-card h3 { max-width: 420px; margin: 80px 0 15px; font-size: clamp(1.5rem, 2.4vw, 2.3rem); letter-spacing: -.045em; line-height: 1.1; }
.office-card a { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-size: .8rem; font-weight: 800; }

/* Error 404 */
.error-hero {
  position: relative;
  display: grid;
  min-height: clamp(700px, 88svh, 820px);
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}
.error-hero-media { position: absolute; inset: 0 0 0 46%; overflow: hidden; }
.error-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 58% center; filter: saturate(.82) contrast(1.06); }
.error-hero-overlay {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    radial-gradient(circle at 82% 35%, rgba(85,199,255,.19), transparent 27%),
    linear-gradient(90deg, rgba(7,18,33,1) 0%, rgba(7,18,33,.96) 39%, rgba(7,18,33,.58) 67%, rgba(7,18,33,.3) 100%),
    linear-gradient(0deg, rgba(7,18,33,.72), transparent 48%);
}
.error-hero-grid {
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: .1;
  background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(90deg, #000, transparent 74%);
}
.error-hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 690px) minmax(260px, 1fr);
  align-items: center;
  gap: 45px;
  min-height: inherit;
  padding-top: 145px;
  padding-bottom: 82px;
}
.error-hero-copy { position: relative; z-index: 2; width: 100%; min-width: 0; }
.error-hero h1 { max-width: 720px; margin: 0; font-size: clamp(3rem, 5.1vw, 5.15rem); font-weight: 760; letter-spacing: -.062em; line-height: .94; text-wrap: balance; }
.error-hero h1 span { color: var(--blue); }
.error-hero-lead { max-width: 620px; margin: 27px 0 0; color: rgba(255,255,255,.72); font-size: clamp(1rem, 1.3vw, 1.16rem); line-height: 1.7; }
.error-actions { margin-top: 34px; }
.error-actions .button-ghost { backdrop-filter: blur(8px); background: rgba(7,18,33,.22); }
.error-actions .button-ghost:hover { background: var(--white); }
.error-code { position: relative; justify-self: end; width: max-content; text-align: right; }
.error-code::before, .error-code::after { content: ""; position: absolute; border: 1px solid rgba(85,199,255,.22); border-radius: 50%; pointer-events: none; }
.error-code::before { width: 250px; height: 250px; right: -64px; top: 50%; transform: translateY(-55%); }
.error-code::after { width: 155px; height: 155px; right: -16px; top: 50%; transform: translateY(-58%); }
.error-code span { position: relative; z-index: 1; display: block; color: rgba(85,199,255,.09); font-size: clamp(9rem, 17vw, 16rem); font-weight: 820; letter-spacing: -.1em; line-height: .76; -webkit-text-stroke: 1px rgba(126,215,255,.45); text-shadow: 0 0 50px rgba(85,199,255,.08); }
.error-code small { position: relative; z-index: 2; display: block; margin-top: 27px; color: rgba(255,255,255,.67); font-size: .65rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }

.error-paths { padding-block: clamp(82px, 9vw, 120px); background: var(--paper); }
.error-paths-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 430px); align-items: end; gap: 70px; margin-bottom: 48px; }
.error-paths-heading h2 { max-width: 680px; margin: 0; color: var(--ink); font-size: clamp(2.45rem, 4vw, 4.1rem); font-weight: 735; letter-spacing: -.055em; line-height: .98; text-wrap: balance; }
.error-paths-heading > p { min-width: 0; margin: 0; color: var(--muted); }
.error-paths-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.error-path-card { position: relative; display: flex; flex-direction: column; min-height: 245px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.7); transition: color .3s ease, background .3s ease, transform .3s ease, box-shadow .3s ease; }
.error-path-card > span { color: var(--blue-strong); font-size: .68rem; font-weight: 800; letter-spacing: .13em; }
.error-path-card strong { max-width: 270px; margin-top: auto; color: var(--ink); font-size: clamp(1.25rem, 2vw, 1.72rem); letter-spacing: -.035em; line-height: 1.08; }
.error-path-card small { max-width: 310px; margin-top: 11px; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.error-path-card i { position: absolute; top: 24px; right: 25px; color: var(--blue-strong); font-size: 1.15rem; font-style: normal; transition: transform .3s ease; }
.error-path-card:hover, .error-path-card:focus-visible { z-index: 1; color: var(--white); background: var(--ink-soft); transform: translateY(-5px); box-shadow: 0 22px 55px rgba(7,18,33,.14); }
.error-path-card:hover strong, .error-path-card:focus-visible strong { color: var(--white); }
.error-path-card:hover small, .error-path-card:focus-visible small { color: rgba(255,255,255,.65); }
.error-path-card:hover i, .error-path-card:focus-visible i { color: var(--blue); transform: translate(3px, -3px); }
.error-path-card:focus-visible { outline: 2px solid var(--blue-strong); outline-offset: -5px; }

@media (max-width: 1080px) {
  .service-hero h1 { font-size: clamp(3.15rem, 6vw, 4.7rem); }
}

@media (max-width: 980px) {
  .service-hero-copy { width: min(82vw, 720px); }
  .service-intro-grid, .process-layout, .contact-layout { grid-template-columns: 1fr; }
  .service-kicker, .process-panel, .contact-copy, .service-faq .faq-intro { position: relative; top: auto; }
  .service-specs-heading, .applications-heading, .office-heading { grid-template-columns: 1fr; gap: 24px; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .process-panel { min-height: 520px; }
  .application-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { gap: 70px; }
  .error-hero-media { inset: 0 0 0 30%; }
  .error-hero-inner { grid-template-columns: minmax(0, 650px) 1fr; }
  .error-code { position: absolute; z-index: -1; right: 0; opacity: .48; }
  .error-paths-heading { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 700px) {
  .service-hero { min-height: 780px; height: auto; }
  .service-hero-media img { object-position: 62% center; }
  .service-hero-overlay { background: linear-gradient(90deg, rgba(7,18,33,.96), rgba(7,18,33,.5)), linear-gradient(0deg, rgba(7,18,33,.95), transparent 65%); }
  .service-hero-inner { min-height: auto; padding-top: 115px; padding-bottom: 44px; }
  .service-hero-copy { width: 100%; }
  .service-hero-meta { padding-bottom: 28px; }
  .service-hero-meta-inner { grid-template-columns: repeat(3, 1fr); }
  .service-hero-meta div { padding: 13px 9px 0 0; }
  .service-hero-meta div + div { padding-left: 9px; }
  .service-hero-meta strong { font-size: .67rem; }
  .service-hero-meta small { font-size: .52rem; }
  .visual-disclaimer { display: none; }
  .service-intro, .applications, .service-process, .service-faq, .related, .contact-section, .office-section { padding-block: 85px; }
  .benefit-list, .form-grid, .office-grid { grid-template-columns: 1fr; }
  .benefit { min-height: 170px; }
  .spec-grid { grid-template-columns: 1fr; }
  .spec-card { min-height: 225px; }
  .application-grid { grid-template-columns: 1fr; }
  .process-panel { min-height: 470px; padding: 26px; }
  .process-panel-status { right: 26px; bottom: 26px; left: 26px; }
  .process-step { min-height: 245px; padding-left: 56px; }
  .process-step > span { margin-left: -81px; }
  .related-heading { display: block; }
  .related-grid { grid-template-columns: 1fr; }
  .related-card { min-height: 210px; }
  .contact-hero { min-height: 690px; }
  .contact-hero .service-hero-inner { min-height: auto; }
  .contact-form { padding: 25px 20px; }
  .office-card { min-height: 260px; }
  .error-hero { min-height: 740px; }
  .error-hero-media { inset: 0; opacity: .72; }
  .error-hero-overlay { background: linear-gradient(90deg, rgba(7,18,33,.98), rgba(7,18,33,.72)), linear-gradient(0deg, rgba(7,18,33,.96), transparent 65%); }
  .error-hero-inner { display: flex; align-items: center; max-width: 100%; padding-top: 120px; padding-bottom: 72px; }
  .error-hero-copy, .error-hero-lead, .error-actions { max-width: 100%; }
  .error-hero h1 { max-width: 100%; font-size: clamp(2.55rem, 10vw, 3.9rem); text-wrap: wrap; }
  .error-hero h1 span { display: block; }
  .error-code { right: -35px; bottom: 90px; opacity: .18; }
  .error-code small { display: none; }
  .error-paths-grid { grid-template-columns: 1fr; }
  .error-paths-heading, .error-paths-heading > * { min-width: 0; max-width: 100%; }
  .error-path-card { min-height: 215px; }
}

@media (max-width: 620px) {
  .service-hero h1 { font-size: clamp(2rem, 9.5vw, 3rem); }
  .error-actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .error-actions .button { width: 100%; max-width: 100%; }
  .error-code span { font-size: 9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .process-step { opacity: 1; transform: none; }
}
