@font-face {
  font-family: "Sora";
  src: url("../assets/fonts/sora-var.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Oswald";
  src: url("../assets/fonts/oswald-var.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --midnight: #071722;
  --midnight-deep: #041019;
  --frost: #eaf8ff;
  --glacier: #89d9f3;
  --blue: #289bc7;
  --steel: #83a4b2;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  color: var(--frost);
  background: var(--midnight);
  font-family: "Archivo", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  overflow-x: clip;
  background:
    radial-gradient(circle at 15% 84%, rgba(40, 155, 199, 0.15), transparent 28%),
    linear-gradient(120deg, var(--midnight) 0 58%, #0b2432 58% 100%);
  isolation: isolate;
}

.blueprint {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(137, 217, 243, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(137, 217, 243, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 72%);
}

.site-header {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 28px 48px;
  border-bottom: 1px solid rgba(234, 248, 255, 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.brand-mark {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--glacier);
  stroke-linecap: round;
  stroke-width: 1.65;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover .brand-mark {
  transform: rotate(30deg);
}

.brand-copy {
  display: grid;
  line-height: 0.9;
  text-transform: uppercase;
}

.brand-copy strong {
  font-family: "Sora", sans-serif;
  font-size: 0.96rem;
  letter-spacing: 0.1em;
}

.brand-copy small {
  margin-top: 6px;
  color: var(--steel);
  font-family: "Oswald", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.31em;
}

nav {
  display: flex;
  gap: clamp(24px, 3.2vw, 52px);
  justify-self: center;
}

nav a,
.header-action {
  position: relative;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

nav a {
  color: rgba(234, 248, 255, 0.67);
  transition: color 250ms ease;
}

nav a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  background: var(--glacier);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

nav a:hover {
  color: var(--frost);
}

nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
  transition: color 250ms ease, transform 250ms ease;
}

.header-action:hover {
  color: var(--glacier);
  transform: translateY(-2px);
}

.header-action:active {
  transform: translateY(0) scale(0.98);
}

.status-dot {
  width: 7px;
  height: 7px;
  border: 1px solid var(--glacier);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(137, 217, 243, 0.08);
  animation: status-breathe 3.2s ease-in-out infinite;
}

.hero-stage {
  position: relative;
  width: min(100%, 1440px);
  min-height: calc(100dvh - 91px);
  margin: 0 auto;
}

.copy-block {
  position: relative;
  z-index: 5;
  width: min(53%, 730px);
  padding: clamp(58px, 8vh, 92px) 0 148px 58px;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 590px);
  color: var(--glacier);
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 31px;
  height: 1px;
  margin-right: 12px;
  background: var(--blue);
  content: "";
}

.eyebrow > span:first-child {
  margin-right: auto;
}

.eyebrow-code {
  color: rgba(234, 248, 255, 0.42);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

h1 {
  max-width: 690px;
  margin: clamp(30px, 5vh, 52px) 0 34px;
  font-family: "Sora", sans-serif;
  font-size: clamp(3.9rem, 5.55vw, 5.55rem);
  font-weight: 610;
  letter-spacing: -0.075em;
  line-height: 0.89;
}

h1 span {
  display: block;
}

h1 .cold {
  color: var(--frost);
}

h1 .heat {
  color: transparent;
  -webkit-text-stroke: 1.3px rgba(137, 217, 243, 0.64);
}

h1 .job {
  margin-top: 12px;
  color: var(--glacier);
  font-size: 0.63em;
  font-weight: 430;
  letter-spacing: -0.055em;
}

.intro-row {
  display: grid;
  grid-template-columns: minmax(220px, 330px) auto;
  align-items: center;
  gap: 28px;
}

.intro-row p {
  margin: 0;
  color: rgba(234, 248, 255, 0.66);
  font-size: 0.88rem;
  line-height: 1.55;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  min-width: 190px;
  padding: 16px 18px 16px 21px;
  border: 1px solid rgba(234, 248, 255, 0.75);
  background: var(--frost);
  color: var(--midnight-deep);
  font-family: "Sora", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: color 300ms ease, background 300ms ease, transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.primary-cta svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.primary-cta:hover {
  background: var(--glacier);
  transform: translateY(-3px);
}

.primary-cta:hover svg {
  transform: translateX(4px);
}

.primary-cta:active {
  transform: translateY(-1px) scale(0.98);
}

.climate-visual {
  position: absolute;
  z-index: 2;
  top: -91px;
  right: 0;
  bottom: 0;
  left: 48%;
  overflow: hidden;
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%);
}

.service-photo {
  position: absolute;
  inset: 0;
  margin: 0;
}

.service-photo::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(7, 23, 34, 0.95) 0%, rgba(7, 23, 34, 0.52) 35%, rgba(5, 17, 26, 0.18) 68%),
    linear-gradient(0deg, rgba(4, 16, 25, 0.9), transparent 47%);
  content: "";
}

.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
  filter: saturate(0.55) contrast(1.06) hue-rotate(3deg);
}

.cold-blade {
  position: absolute;
  inset: -12% auto -12% 15%;
  width: 2px;
  background: linear-gradient(transparent, var(--glacier) 18%, var(--glacier) 82%, transparent);
  opacity: 0.7;
  transform: rotate(17deg);
  transform-origin: center;
}

.outside-reading {
  position: absolute;
  top: 16%;
  right: 7%;
  display: grid;
  text-align: right;
  text-transform: uppercase;
}

.outside-reading span,
.outside-reading small,
.dial-face span,
.dial-face small {
  color: rgba(234, 248, 255, 0.55);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.57rem;
  letter-spacing: 0.2em;
}

.outside-reading strong {
  margin: 5px 0 8px;
  color: rgba(234, 248, 255, 0.78);
  font-family: "Oswald", sans-serif;
  font-size: clamp(4.4rem, 7.5vw, 7rem);
  font-weight: 250;
  letter-spacing: -0.06em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.dial {
  position: absolute;
  top: 36%;
  left: 10%;
  display: grid;
  width: clamp(220px, 22vw, 318px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(137, 217, 243, 0.3);
  border-radius: 50%;
  background: rgba(7, 23, 34, 0.45);
  box-shadow: inset 0 1px 0 rgba(234, 248, 255, 0.12), 0 28px 90px rgba(1, 12, 18, 0.36);
  backdrop-filter: blur(10px);
}

.dial::before {
  position: absolute;
  inset: -13px;
  border-radius: inherit;
  background: repeating-conic-gradient(from -44deg, rgba(137, 217, 243, 0.75) 0 1deg, transparent 1deg 9deg);
  content: "";
  mask: radial-gradient(circle, transparent 68%, #000 69% 71%, transparent 72%);
}

.dial::after {
  position: absolute;
  top: 2px;
  left: 50%;
  width: 3px;
  height: 25px;
  border-radius: 2px;
  background: var(--glacier);
  content: "";
  transform: translateX(-50%) rotate(42deg);
  transform-origin: 50% calc(50% + 127px);
}

.dial-face {
  display: grid;
  width: 66%;
  aspect-ratio: 1;
  place-content: center;
  border: 1px solid rgba(234, 248, 255, 0.12);
  border-radius: 50%;
  text-align: center;
}

.dial-face strong {
  margin: 3px 0 9px;
  font-family: "Oswald", sans-serif;
  font-size: clamp(4.7rem, 7.5vw, 6.8rem);
  font-weight: 300;
  letter-spacing: -0.075em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.airflow {
  position: absolute;
  right: -4%;
  bottom: 4%;
  width: 86%;
  height: 48%;
  overflow: visible;
  fill: none;
  stroke: rgba(137, 217, 243, 0.38);
  stroke-linecap: round;
  stroke-width: 1.2;
  animation: airflow-drift 5.8s ease-in-out infinite;
}

.airflow path:nth-child(2) {
  opacity: 0.6;
}

.airflow path:nth-child(3) {
  opacity: 0.35;
}

.service-strip {
  position: absolute;
  z-index: 6;
  right: 48px;
  bottom: 28px;
  left: 58px;
  display: grid;
  grid-template-columns: 1fr 1.28fr;
  align-items: end;
  gap: 40px;
  padding-top: 18px;
  border-top: 1px solid rgba(234, 248, 255, 0.18);
}

.strip-intro {
  color: rgba(234, 248, 255, 0.47);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-strip ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-strip li {
  color: rgba(234, 248, 255, 0.76);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.service-strip li span {
  margin-right: 8px;
  color: var(--glacier);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.58rem;
}

@keyframes airflow-drift {
  0%, 100% { opacity: 0.58; transform: translate3d(0, 0, 0); }
  50% { opacity: 1; transform: translate3d(12px, -5px, 0); }
}

@keyframes status-breathe {
  0%, 100% { opacity: 0.55; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 920px) {
  .site-header {
    padding-inline: 28px;
  }

  .copy-block {
    width: 62%;
    padding-left: 32px;
  }

  .climate-visual {
    left: 45%;
  }

  .intro-row {
    grid-template-columns: 1fr;
    max-width: 340px;
  }

  .primary-cta {
    width: 210px;
  }

  .service-strip {
    left: 32px;
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: 100dvh;
    background: linear-gradient(165deg, var(--midnight) 0 67%, #0b2b3b 100%);
  }

  .blueprint {
    background-size: 34px 34px;
    mask-image: linear-gradient(#000, transparent 76%);
  }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 70px;
    padding: 18px;
  }

  .brand-mark {
    width: 29px;
    height: 29px;
  }

  .brand-copy strong {
    font-size: 0.8rem;
  }

  .brand-copy small {
    font-size: 0.53rem;
  }

  nav {
    display: none;
  }

  .header-action {
    font-size: 0;
  }

  .header-action::after {
    color: rgba(234, 248, 255, 0.72);
    content: "Service";
    font-size: 0.58rem;
    letter-spacing: 0.16em;
  }

  .hero-stage {
    min-height: calc(100dvh - 70px);
  }

  .copy-block {
    width: auto;
    padding: 25px 18px 318px;
  }

  .eyebrow {
    width: 100%;
    font-size: 0.54rem;
  }

  .eyebrow-code {
    display: none;
  }

  h1 {
    max-width: 345px;
    margin: 22px 0 18px;
    font-size: clamp(2.7rem, 12.4vw, 3.15rem);
    letter-spacing: -0.07em;
    line-height: 0.9;
  }

  h1 .job {
    margin-top: 7px;
    font-size: 0.65em;
  }

  .intro-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    max-width: none;
  }

  .intro-row p {
    max-width: 180px;
    font-size: 0.72rem;
    line-height: 1.45;
  }

  .primary-cta {
    align-self: end;
    gap: 10px;
    width: auto;
    min-width: 145px;
    padding: 13px 13px 13px 15px;
    font-size: 0.62rem;
  }

  .primary-cta svg {
    width: 17px;
  }

  .climate-visual {
    top: auto;
    right: -42px;
    bottom: 0;
    left: 34px;
    height: 302px;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
  }

  .service-photo::after {
    background:
      linear-gradient(132deg, rgba(7, 23, 34, 0.86), transparent 52%),
      linear-gradient(0deg, rgba(4, 16, 25, 0.78), transparent 70%);
  }

  .service-photo img {
    object-position: 62% center;
  }

  .cold-blade {
    left: 17%;
  }

  .outside-reading {
    display: none;
  }

  .dial {
    top: 28px;
    left: 4%;
    width: 166px;
    backdrop-filter: blur(7px);
  }

  .dial::after {
    height: 16px;
    transform-origin: 50% calc(50% + 66px);
  }

  .dial-face strong {
    font-size: 4rem;
  }

  .dial-face span,
  .dial-face small {
    font-size: 0.43rem;
  }

  .airflow {
    right: -2%;
    bottom: 2%;
    width: 90%;
    height: 48%;
  }

  .service-strip {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
