:root {
  color-scheme: dark;
  --aqua: #43d5cb;
  --white: #f7f7f7;
  --muted: #d0d0d2;
  font-family: Arial, Helvetica, sans-serif;
  background: #000;
  color: var(--white);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
body { min-height: 100vh; overflow-x: hidden; background: #000 url("assets/ega-construction-hero.webp") left center / cover no-repeat; }
a { color: inherit; }

.page {
  position: relative;
  display: grid;
  grid-template-columns: minmax(410px, 0.9fr) minmax(500px, 1.1fr);
  align-items: center;
  width: min(100%, 1672px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 58px clamp(50px, 15vw, 250px) 34px clamp(50px, 15vw, 250px);
}

.copy { position: relative; z-index: 1; width: min(100%, 540px); padding-top: 0; }
.logo { display: block; width: clamp(230px, 27vw, 380px); height: auto; margin: 0 0 20px -9px; }
h1 { margin: 0 0 22px; font-size: clamp(39px, 4.2vw, 66px); line-height: .99; letter-spacing: -2.3px; font-weight: 750; }
h1 span { color: var(--aqua); }
.message { margin: 0 0 30px; color: var(--muted); font-size: clamp(20px, 1.8vw, 28px); line-height: 1.28; letter-spacing: .05px; }
.contact { display: flex; align-items: center; justify-content: space-between; gap: 32px; width: 274px; min-height: 61px; padding: 0 31px 0 39px; border: 1.5px solid #f2f2f2; border-radius: 999px; text-decoration: none; font-size: 14px; letter-spacing: 2.1px; transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
.contact span { font-size: 22px; line-height: 1; letter-spacing: 0; }
.contact:hover, .contact:focus-visible { color: #050606; border-color: var(--aqua); background: var(--aqua); }
.contact-details { display: flex; align-items: center; gap: 28px; margin-top: 39px; white-space: nowrap; }
.contact-details a { display: inline-flex; align-items: center; gap: 14px; color: #f5f5f5; text-decoration: none; font-size: 17px; }
.contact-details a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.contact-details svg { flex: 0 0 auto; width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.contact-details svg .solid { fill: currentColor; stroke: none; }
.divider { height: 39px; width: 1px; background: #eee; }
.portal { position: fixed; z-index: 5; top: clamp(24px, 4.4vw, 44px); right: clamp(24px, 4.4vw, 66px); display: grid; width: 62px; height: 62px; place-items: center; border: 1.5px solid var(--aqua); border-radius: 50%; color: #fff; transition: background-color .18s ease; }
.portal:hover, .portal:focus-visible { background: #123b39; }
.portal svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 4px; }

@media (max-width: 900px) {
  .page { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); padding-left: 6vw; padding-right: 4vw; }
  .logo { width: clamp(220px, 30vw, 300px); }
  h1 { font-size: clamp(34px, 4.2vw, 43px); letter-spacing: -1.6px; }
  .message { font-size: 21px; }
  .contact-details { flex-wrap: wrap; gap: 12px; white-space: normal; }
  .contact-details a { gap: 9px; font-size: 14px; }
  .contact-details svg { width: 25px; height: 25px; }
}

@media (max-width: 700px) {
  body { min-height: 100svh; background-size: auto 45svh; background-position: right 7% bottom 24%; }
  .page { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto minmax(165px, 1fr) auto auto; align-content: stretch; min-height: 100svh; padding: 30px 26px 25px; }
  .copy { display: contents; }
  .logo { grid-row: 1; width: 205px; margin: 12px 0 13px -5px; }
  h1 { grid-row: 2; margin-bottom: 12px; font-size: clamp(40px, 11vw, 52px); line-height: 1; letter-spacing: -1.7px; }
  .message { grid-row: 3; margin-bottom: 8px; font-size: 19px; line-height: 1.28; }
  .desktop-break { display: none; }
  .contact { grid-row: 5; width: 244px; min-height: 54px; padding-inline: 27px; font-size: 13px; }
  .contact-details { grid-row: 6; position: relative; z-index: 2; flex-wrap: wrap; gap: 14px 20px; margin-top: 14px; padding-top: 5px; }
  .contact-details a { gap: 9px; font-size: 14px; }
  .contact-details svg { width: 23px; height: 23px; }
  .divider { height: 25px; }
  .portal { top: 19px; right: 18px; width: 47px; height: 47px; }
  .portal svg { width: 22px; height: 22px; }
}

@media (max-width: 380px) {
  .page { padding-inline: 20px; }
  .logo { width: 175px; }
  h1 { font-size: 39px; }
  .message { font-size: 18px; }
  .contact-details { gap: 11px; }
  .contact-details a { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
