@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;600;800&display=swap');

:root {
  color-scheme: dark;
  --ink: #eef4e7;
  --muted: #98a591;
  --line: #344137;
  --accent: #b7f25a;
  --paper: #101812;
  --glow: hsl(46 85% 60% / .6);
  --glow-orange: hsl(25 85% 48% / .45);
  --glow-red: hsl(8 75% 40% / .25);
  --glow-x: 78%;
  --glow-y: 12%;
  --glow-opacity: .7;
  --surface: #1c2b1d88;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  transition: background-color 3s, color 3s;
  font-family: Manrope, system-ui, sans-serif;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at var(--glow-x) var(--glow-y),
    var(--glow) 0%, var(--glow-orange) 18%, var(--glow-red) 38%, transparent 68%);
  opacity: var(--glow-opacity);
  transition: opacity 3s;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

main { width: min(1180px, calc(100% - 48px)); margin: auto; position: relative; z-index: 1; }

header, footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 500 11px/1 DM Mono, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

header { height: 90px; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); text-decoration: none; font-size: 14px; }
.brand span { color: var(--accent); }
.signal { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.signal i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }

.hero { position: relative; min-height: 710px; padding: clamp(76px, 10vw, 128px) 0 84px; overflow: hidden; }
.eyebrow, .label { margin: 0; color: var(--accent); font: 500 11px/1.3 DM Mono, monospace; letter-spacing: .13em; text-transform: uppercase; }
h1 { position: relative; z-index: 1; margin: 24px 0; max-width: 900px; font-size: clamp(54px, 9.2vw, 124px); line-height: .88; letter-spacing: -.075em; }
h1 em { color: transparent; -webkit-text-stroke: 1px var(--muted); font-style: normal; }
.terrain { position: absolute; top: 18px; right: -82px; width: min(48vw, 530px); fill: none; stroke: var(--accent); stroke-width: 1; opacity: .15; transform: rotate(12deg); }
.conditions { position: relative; margin: 14px 0 30px; color: var(--muted); font: 400 11px/1.7 DM Mono, monospace; letter-spacing: .04em; }
.hero-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 50px; margin-top: 42px; }
.node-meta { display: flex; gap: 42px; margin: 0; font: 500 10px/1.4 DM Mono, monospace; letter-spacing: .12em; text-transform: uppercase; }
.node-meta div { padding-left: 13px; border-left: 1px solid var(--line); }
.node-meta dt { color: var(--muted); }
.node-meta dd { margin: 6px 0 0; color: var(--ink); }
.intro { max-width: 510px; margin: 0; color: var(--muted); font-size: clamp(16px, 2vw, 20px); line-height: 1.6; }

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding-bottom: 16px; }
.section-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; height: 90px; border-top: 1px solid var(--line); }
.section-head span { color: var(--muted); font: 500 10px/1 DM Mono, monospace; letter-spacing: .12em; text-transform: uppercase; }
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 350px;
  padding: 30px;
  overflow: hidden;
  color: var(--ink);
  border: 1px solid var(--line);
  text-decoration: none;
  background: linear-gradient(145deg, var(--surface), transparent);
  transition: border-color .25s, transform .25s, background .25s;
}
.service::before { content: attr(href); position: absolute; right: -8px; top: 68px; color: #dfffb907; font: 800 70px/1 Manrope, sans-serif; letter-spacing: -.08em; white-space: nowrap; }
.service::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.service:hover { border-color: var(--accent); transform: translateY(-4px); }
.service:hover::after { transform: scaleX(1); }
.number { align-self: start; color: var(--muted); font: 400 12px DM Mono, monospace; }
.service div { position: relative; z-index: 1; max-width: 410px; }
.service h2 { margin: 12px 0 9px; font-size: clamp(32px, 4vw, 50px); line-height: 1; letter-spacing: -.055em; }
.service p:last-child { max-width: 370px; margin: 0; color: var(--muted); line-height: 1.55; }
.arrow { position: absolute; top: 26px; right: 28px; display: flex; align-items: center; gap: 12px; color: var(--accent); font-size: 28px; transition: transform .25s; }
.arrow i { display: block; width: 42px; height: 1px; background: var(--line); }
.service:hover .arrow { transform: translate(4px, -4px); }

footer { min-height: 120px; gap: 16px; flex-wrap: wrap; color: var(--muted); }
.weather-credit { color: inherit; text-underline-offset: 4px; font-size: 9px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

@media (max-width: 650px) {
  main { width: min(100% - 30px, 1180px); }
  header { height: 72px; }
  .signal { font-size: 9px; }
  .hero { min-height: 620px; padding: 74px 0 58px; }
  h1 { font-size: clamp(48px, 16vw, 76px); }
  .terrain { top: 170px; right: -150px; width: 440px; }
  .hero-foot { align-items: flex-start; flex-direction: column-reverse; gap: 35px; margin-top: 52px; }
  .node-meta { gap: 25px; }
  .services { grid-template-columns: 1fr; gap: 12px; }
  .section-head { height: 76px; }
  .service { min-height: 270px; padding: 24px; }
  .service:hover { transform: none; }
  .arrow { top: 20px; right: 22px; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  body, body::after, .service, .service::after, .arrow { transition: none; }
}
