:root {
  --night: #030b10;
  --midnight: #071720;
  --navy: #0b2633;
  --aqua: #58e9ff;
  --ice: #d9faff;
  --mist: #91a8af;
  --amber: #f2aa62;
  --white: #f7fcfd;
  --line: rgba(217, 250, 255, 0.2);
  --display: "Avenir Next Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --utility: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--white);
  background: var(--night);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.26em;
}

a:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 30;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  color: var(--night);
  background: var(--aqua);
  font-weight: 800;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.3rem;
  padding: 0.75rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(217, 250, 255, 0.24);
}

.brand {
  display: grid;
  place-items: center;
  width: 7rem;
  height: 3.65rem;
  padding: 0.35rem 0.65rem;
  background: rgba(3, 11, 16, 0.82);
  border-left: 2px solid var(--aqua);
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.8rem);
  font-family: var(--utility);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav a:not(.header-phone) {
  display: none;
}

.header-phone {
  color: var(--aqua);
  text-decoration: none;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 100svh;
  padding: 8.4rem clamp(1rem, 5vw, 5rem) 5rem;
  isolation: isolate;
  overflow: hidden;
}

.hero-media,
.hero-media::after,
.night-grade,
.pool-light,
.house-light {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -2;
  background: var(--midnight);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  filter: brightness(0.54) contrast(1.19) saturate(1.05) hue-rotate(4deg);
  transform: scale(1.02);
}

.night-grade {
  background:
    linear-gradient(180deg, rgba(3, 11, 16, 0.35) 0%, rgba(3, 11, 16, 0.04) 38%, rgba(3, 11, 16, 0.94) 92%),
    linear-gradient(90deg, rgba(3, 11, 16, 0.83) 0%, rgba(7, 23, 32, 0.26) 68%, rgba(3, 11, 16, 0.22) 100%),
    rgba(0, 37, 55, 0.24);
  mix-blend-mode: multiply;
}

.pool-light {
  top: 48%;
  right: -19%;
  bottom: -22%;
  left: 12%;
  background: radial-gradient(ellipse at center, rgba(88, 233, 255, 0.42) 0%, rgba(28, 134, 162, 0.17) 32%, transparent 67%);
  mix-blend-mode: screen;
}

.house-light {
  top: -8%;
  right: -18%;
  bottom: 42%;
  left: 52%;
  background: radial-gradient(circle at center, rgba(242, 170, 98, 0.22) 0%, transparent 57%);
  mix-blend-mode: screen;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: 0;
  content: "";
  pointer-events: none;
}

.hero::before {
  top: 5.3rem;
  right: clamp(1rem, 5vw, 5rem);
  bottom: 4.1rem;
  width: 1px;
  background: linear-gradient(180deg, var(--aqua), transparent 42%, var(--amber));
}

.hero::after {
  right: 0;
  bottom: 0;
  left: 0;
  height: 0.35rem;
  background: linear-gradient(90deg, var(--aqua) 0 72%, var(--amber) 72% 78%, transparent 78%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 57rem;
  padding-right: 1.4rem;
}

.eyebrow,
.frame-note,
.frame-code,
.opening-label,
.project-caption,
.method-track span {
  font-family: var(--utility);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.115em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0;
  color: var(--aqua);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
  margin: 1rem 0 1.4rem;
  font-size: clamp(3.4rem, 14vw, 8.7rem);
  letter-spacing: -0.065em;
  line-height: 0.82;
  overflow-wrap: anywhere;
}

h1 em {
  display: block;
  color: var(--ice);
  font-style: normal;
  font-weight: 300;
}

.hero-intro {
  max-width: 36rem;
  margin: 0;
  color: rgba(247, 252, 253, 0.74);
  font-size: clamp(1rem, 2vw, 1.17rem);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.75rem 1.1rem;
  font-family: var(--utility);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

.button-aqua {
  color: var(--night);
  background: var(--aqua);
  box-shadow: 0 0 2rem rgba(88, 233, 255, 0.17);
}

.button-text {
  padding-right: 0;
  padding-left: 0;
  color: var(--white);
  border-bottom: 1px solid var(--amber);
}

.frame-note {
  position: absolute;
  z-index: 1;
  right: clamp(1rem, 5vw, 5rem);
  bottom: 1.5rem;
  left: clamp(1rem, 5vw, 5rem);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(217, 250, 255, 0.58);
  font-size: 0.58rem;
}

.frame-code {
  position: absolute;
  z-index: 1;
  top: 6.8rem;
  right: clamp(1rem, 5vw, 5rem);
  margin: 0;
  color: var(--amber);
  writing-mode: vertical-rl;
}

.opening,
.scope,
.method,
.area,
.contact {
  padding: clamp(4.8rem, 10vw, 9rem) clamp(1rem, 7vw, 8rem);
}

.opening {
  display: grid;
  gap: 3rem;
  color: var(--white);
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(88, 233, 255, 0.05) 49.8% 50%, transparent 50%),
    var(--night);
}

.opening-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--aqua);
}

.opening-copy h2,
.scope h2,
.method h2,
.area h2,
.contact h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(3rem, 9vw, 7rem);
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.opening-copy p {
  max-width: 47rem;
  margin: 0;
  color: var(--mist);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.project-window {
  position: relative;
  display: grid;
  min-height: 42rem;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
}

.project-image {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: url("/assets/artesian-project.jpeg");
  background-position: 32% center;
  background-size: cover;
  filter: brightness(0.43) contrast(1.26) saturate(1.28) hue-rotate(5deg);
  transform: scale(1.025);
}

.project-window::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(3, 11, 16, 0.16), rgba(3, 11, 16, 0.78)),
    radial-gradient(ellipse at 35% 72%, rgba(88, 233, 255, 0.48), transparent 42%);
  mix-blend-mode: screen, normal;
}

.project-caption {
  position: absolute;
  top: clamp(1.5rem, 4vw, 4rem);
  right: clamp(1rem, 5vw, 5rem);
  left: clamp(1rem, 5vw, 5rem);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(217, 250, 255, 0.44);
  color: var(--ice);
}

.project-caption p {
  margin: 0;
}

.project-statement {
  align-self: end;
  max-width: 20ch;
  margin: 0;
  padding: 0 clamp(1rem, 7vw, 8rem) clamp(4rem, 9vw, 8rem);
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(2.7rem, 8vw, 6rem);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 0.94;
  text-transform: uppercase;
}

.scope {
  color: var(--white);
  background: var(--midnight);
}

.scope-heading {
  display: grid;
  gap: 1.2rem;
  margin-bottom: 4rem;
}

.scope-heading h2 {
  max-width: 13ch;
  margin-bottom: 0;
}

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

.scope-list article {
  display: grid;
  gap: 1rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.scope-list h3 {
  margin: 0;
  color: var(--ice);
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.scope-list p {
  max-width: 43rem;
  margin: 0;
  color: var(--mist);
}

.scope-list a {
  align-self: start;
  color: var(--aqua);
  font-family: var(--utility);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.method {
  display: grid;
  gap: 4rem;
  color: var(--white);
  background: var(--night);
}

.method-copy h2 {
  max-width: 11ch;
  margin-top: 1rem;
}

.method-copy > p:last-child {
  max-width: 34rem;
  margin: 0;
  color: var(--mist);
}

.method-track {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0 0 0 2rem;
  list-style: none;
  border-left: 1px solid var(--aqua);
}

.method-track li {
  position: relative;
  padding: 0.3rem 0 2.6rem;
}

.method-track li:last-child {
  padding-bottom: 0;
}

.method-track li::before {
  position: absolute;
  top: 0.4rem;
  left: calc(-2rem - 4px);
  width: 7px;
  height: 7px;
  content: "";
  background: var(--aqua);
  box-shadow: 0 0 1rem rgba(88, 233, 255, 0.75);
}

.method-track span {
  color: var(--amber);
}

.method-track h3 {
  margin: 0.65rem 0 0.55rem;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  letter-spacing: -0.035em;
  line-height: 1;
}

.method-track p {
  max-width: 38rem;
  margin: 0;
  color: var(--mist);
}

.area {
  position: relative;
  overflow: hidden;
  color: var(--night);
  background: var(--aqua);
}

.area::after {
  position: absolute;
  top: -30%;
  right: -9%;
  width: 44vw;
  min-width: 18rem;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(3, 11, 16, 0.22);
  border-radius: 50%;
}

.area .eyebrow {
  color: var(--night);
}

.area h2 {
  position: relative;
  z-index: 1;
  max-width: 13ch;
  margin-top: 1rem;
}

.area > p:last-child {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  margin: 0;
  font-weight: 600;
}

.contact {
  display: grid;
  gap: 3rem;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 24%, rgba(242, 170, 98, 0.12), transparent 22%),
    var(--midnight);
  border-bottom: 1px solid var(--line);
}

.contact-heading h2 {
  max-width: 12ch;
  margin-top: 1rem;
  margin-bottom: 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  align-self: end;
}

.contact-details p {
  max-width: 34rem;
  margin: 0 0 0.5rem;
  color: var(--mist);
}

.contact-phone {
  color: var(--aqua);
  font-family: var(--display);
  font-size: clamp(2.3rem, 8vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
}

.contact-details a:not(.contact-phone) {
  font-family: var(--utility);
  font-size: 0.72rem;
  font-weight: 700;
}

footer {
  display: grid;
  gap: 2rem;
  padding: 3rem clamp(1rem, 7vw, 8rem);
  color: var(--mist);
  background: var(--night);
  font-size: 0.78rem;
}

.footer-brand {
  display: grid;
  place-items: center;
  width: 7.5rem;
  height: 4.5rem;
  padding: 0.35rem 0.6rem;
  background: rgba(217, 250, 255, 0.92);
  border-left: 2px solid var(--aqua);
}

.footer-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

footer p {
  max-width: 29rem;
  margin: 0;
}

footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(ellipse at 50% 95%, rgba(88, 233, 255, 0.22), transparent 48%),
    var(--night);
}

.error-card {
  position: relative;
  width: min(50rem, 100%);
  padding: clamp(2rem, 8vw, 5.5rem) clamp(1.5rem, 7vw, 4.5rem);
  border-top: 1px solid var(--aqua);
  border-right: 1px solid rgba(242, 170, 98, 0.65);
}

.error-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--aqua), transparent);
}

.error-card .eyebrow {
  color: var(--amber);
}

.error-card h1 {
  max-width: 10ch;
  margin-top: 1rem;
  font-size: clamp(3.5rem, 14vw, 8rem);
}

.error-card > p:not(.eyebrow) {
  max-width: 34rem;
  color: var(--mist);
}

.error-card .button {
  margin-top: 1.5rem;
}

@media (max-width: 41.999rem) {
  .site-header {
    gap: 0.75rem;
  }

  .brand {
    flex: 0 0 auto;
    width: 6.25rem;
  }

  nav {
    min-width: 0;
    margin-left: auto;
  }

  .header-phone {
    display: none;
  }

  .hero {
    padding-right: 1.35rem;
    padding-left: 1.35rem;
  }

  .hero-copy {
    width: 100%;
    padding-right: 0.5rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.3rem, 11.5vw, 3.35rem);
    letter-spacing: -0.055em;
    line-height: 0.86;
  }

  h1 em {
    max-width: 100%;
  }

  .frame-note span:last-child,
  .frame-code {
    display: none;
  }
}

@media (min-width: 42rem) {
  nav a:not(.header-phone) {
    display: inline;
  }

  .hero-actions {
    flex-direction: row;
    align-items: center;
  }

  .scope-list article {
    grid-template-columns: minmax(13rem, 0.55fr) minmax(20rem, 1fr) auto;
    gap: 3rem;
    align-items: start;
  }
}

@media (min-width: 64rem) {
  .site-header {
    min-height: 6.3rem;
  }

  .brand {
    width: 9rem;
    height: 4.5rem;
  }

  .hero {
    min-height: 56rem;
    padding-top: 10rem;
    padding-bottom: 6.5rem;
  }

  .hero-media img {
    object-position: 53% 52%;
  }

  .hero-copy {
    max-width: 74rem;
  }

  h1 {
    max-width: 10ch;
  }

  .opening {
    grid-template-columns: minmax(12rem, 0.4fr) minmax(0, 1fr);
    gap: 7vw;
  }

  .opening-label {
    display: block;
  }

  .opening-label span:last-child {
    display: block;
    margin-top: 5rem;
    font-size: 2rem;
  }

  .project-window {
    min-height: 58rem;
  }

  .project-image {
    background-position: center 57%;
  }

  .scope-heading {
    grid-template-columns: minmax(12rem, 0.33fr) minmax(0, 1fr);
    gap: 7vw;
  }

  .scope-heading h2 {
    margin-top: 0;
  }

  .method {
    grid-template-columns: minmax(21rem, 0.8fr) minmax(32rem, 1fr);
    gap: 9vw;
  }

  .contact {
    grid-template-columns: minmax(22rem, 1fr) minmax(24rem, 0.85fr);
    gap: 8vw;
  }

  footer {
    grid-template-columns: auto 1fr auto;
    align-items: end;
  }

  footer div {
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
