:root {
  color-scheme: dark;
  --black: #000;
  --white: #f8f8f4;
  --muted: #a9a9a9;
  --dim: #6d6d6d;
  --line: rgba(255, 255, 255, 0.16);
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Courier New", Courier, monospace;
  letter-spacing: -0.01em;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-160%);
  background: var(--white);
  color: var(--black);
  padding: 8px 10px;
}

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

.landing {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #000;
  padding: 30px 44px;
}

.scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.38) 100%),
    url("assets/port-theme-scene.png") center bottom / cover no-repeat;
  opacity: 0.98;
}

.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 28%, rgba(0, 0, 0, 0.2) 45%, rgba(0, 0, 0, 0.74) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), transparent 26%, transparent 68%, rgba(0, 0, 0, 0.72));
}

.top-grid,
.hero-title,
.intro-copy,
.bottom-grid,
.personal-signals {
  position: relative;
  z-index: 1;
}

.top-grid {
  display: grid;
  grid-template-columns: 160px minmax(220px, 1fr) minmax(210px, 270px) 180px;
  gap: 110px;
  align-items: start;
  font-size: 0.82rem;
  line-height: 1.35;
}

.wordmark {
  display: inline-grid;
  gap: 0;
  color: var(--white);
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: 0.94rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-decoration: none;
  text-transform: uppercase;
}

.meta-block {
  display: grid;
  gap: 2px;
  color: var(--muted);
}

.meta-block strong,
.site-nav .is-active,
.copyright strong,
.local-time strong {
  color: var(--white);
  font-weight: 800;
}

.site-nav {
  display: grid;
  gap: 5px;
  justify-self: end;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
}

.site-nav .is-active::after {
  content: " *";
}

.personal-signals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: rgba(248, 248, 244, 0.78);
  font-size: 0.66rem;
  line-height: 1;
  text-transform: uppercase;
}

.personal-signals::before,
.personal-signals::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 43svh;
  width: min(560px, 38vw);
  aspect-ratio: 1 / 0.5;
  border: 1px solid rgba(166, 230, 255, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  filter: drop-shadow(0 0 16px rgba(128, 224, 255, 0.1));
}

.personal-signals::after {
  width: min(720px, 49vw);
  border-color: rgba(255, 114, 238, 0.12);
  transform: translate(-50%, -50%) rotate(18deg);
}

.signal-core,
.project-signal {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
}

.signal-core::before,
.project-signal::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.2);
}

.signal-core {
  left: calc(50% + min(162px, 10.5vw));
  top: 23.5svh;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.project-signal {
  color: rgba(178, 214, 232, 0.62);
}

.signal-puffco {
  left: calc(50% - min(330px, 22vw));
  top: 30svh;
}

.signal-outs {
  left: calc(50% + min(248px, 17vw));
  top: 35svh;
}

.signal-hash {
  left: calc(50% + min(116px, 9vw));
  top: 57svh;
}

.signal-slide {
  left: calc(50% - min(400px, 26vw));
  top: 48svh;
}

.signal-elite {
  left: calc(50% - min(258px, 17vw));
  top: 61svh;
}

.signal-northstar {
  left: calc(50% + min(112px, 8vw));
  top: 65svh;
}

.hero-title {
  position: absolute;
  left: 44px;
  top: 33.5svh;
  display: grid;
  width: min(500px, 40vw);
  pointer-events: none;
}

.script-title {
  display: block;
  font-family: "Snell Roundhand", "Apple Chancery", "Brush Script MT", cursive;
  font-size: clamp(5rem, 9.6vw, 9.2rem);
  font-weight: 400;
  line-height: 0.74;
  letter-spacing: -0.06em;
  transform: translateY(0.015em);
}

.block-title {
  display: block;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(4rem, 7vw, 7.6rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro-copy {
  position: absolute;
  top: 43svh;
  right: 44px;
  width: min(380px, 27vw);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.32;
}

.intro-copy p {
  margin: 0 0 18px;
}

.intro-copy strong {
  color: var(--white);
}

.bottom-grid {
  position: absolute;
  left: 44px;
  right: 44px;
  bottom: 30px;
  display: grid;
  grid-template-columns: 180px 260px 1fr 180px;
  gap: 90px;
  align-items: end;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.local-time,
.copyright {
  display: grid;
  gap: 2px;
}

.social-links {
  grid-column: 2;
  display: grid;
  gap: 4px;
}

.social-links a {
  color: var(--muted);
  text-decoration: none;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--white);
}

.copyright {
  grid-column: 4;
  justify-self: end;
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.projects-section,
.services-section {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  padding: 96px 44px;
  background: var(--black);
}

.projects-section {
  margin-top: -56px;
  padding-top: 214px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.46) 118px, rgba(0, 0, 0, 0.92) 250px, #000 360px),
    radial-gradient(ellipse at 50% 0, rgba(92, 123, 160, 0.12) 0, rgba(0, 0, 0, 0) 50%);
}

.projects-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 420px;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(255, 255, 255, 0.04) 50%, rgba(0, 0, 0, 0.82)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 16px);
  opacity: 0.24;
}

.section-kicker {
  margin-bottom: 80px;
  color: var(--white);
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.project-list article {
  display: grid;
  grid-template-columns: 70px minmax(240px, 0.8fr) minmax(260px, 1fr) 150px;
  gap: 30px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.project-list span,
.project-list p,
.project-list a,
.services-grid,
.contact-link {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.38;
}

.project-list h2,
.services-section h2 {
  margin: 0;
  color: var(--white);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 0.9;
  text-transform: uppercase;
}

.project-list p {
  margin: 0;
  max-width: 520px;
}

.project-list a,
.contact-link {
  justify-self: end;
}

.services-section {
  display: grid;
  align-content: center;
}

.services-section h2 {
  max-width: 950px;
  margin-bottom: 42px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 980px;
  margin-bottom: 42px;
}

.services-grid p {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.contact-link {
  justify-self: start;
}

:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 4px;
}

@media (max-width: 1050px) {
  .top-grid {
    grid-template-columns: 120px 1fr 1fr;
    gap: 34px;
  }

  .site-nav {
    grid-column: 3;
  }

  .stack-block {
    display: none;
  }

  .hero-title {
    top: 30svh;
    width: min(620px, 62vw);
  }

  .personal-signals::before {
    width: min(500px, 58vw);
  }

  .personal-signals::after {
    width: min(630px, 72vw);
  }

  .signal-core,
  .signal-hash,
  .signal-slide,
  .signal-elite {
    display: none;
  }

  .intro-copy {
    top: auto;
    right: 44px;
    bottom: 145px;
    width: min(360px, 40vw);
  }

  .bottom-grid {
    grid-template-columns: 180px 1fr 160px;
    gap: 42px;
  }

  .social-links {
    grid-column: 2;
  }

  .copyright {
    grid-column: 3;
  }

  .project-list article {
    grid-template-columns: 50px minmax(220px, 0.9fr) minmax(260px, 1fr);
  }

  .project-list a {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .landing {
    min-height: 100svh;
    padding: 22px 18px;
  }

  .scene {
    background-position: 53% bottom;
  }

  .personal-signals {
    display: none;
  }

  .top-grid {
    grid-template-columns: 1fr auto;
    gap: 20px;
  }

  .meta-block {
    display: none;
  }

  .site-nav {
    grid-column: 2;
  }

  .hero-title {
    left: 18px;
    right: 18px;
    top: 28svh;
    width: auto;
  }

  .script-title {
    font-size: clamp(4.4rem, 23vw, 8rem);
  }

  .block-title {
    font-size: clamp(4.2rem, 19vw, 7.4rem);
  }

  .intro-copy {
    left: 18px;
    right: 18px;
    bottom: 134px;
    width: auto;
  }

  .bottom-grid {
    left: 18px;
    right: 18px;
    bottom: 20px;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .local-time {
    display: none;
  }

  .social-links {
    grid-column: 1;
  }

  .copyright {
    grid-column: 2;
  }

  .projects-section,
  .services-section {
    padding: 70px 18px;
  }

  .projects-section {
    margin-top: -36px;
    padding-top: 132px;
  }

  .projects-section::before {
    height: 280px;
  }

  .section-kicker {
    margin-bottom: 48px;
  }

  .project-list article {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 0;
  }

  .project-list a {
    grid-column: auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}
