﻿:root {
  --bg: #eceae7;
  --fg: #111111;
  --muted: rgba(17, 17, 17, 0.58);
  --line: rgba(17, 17, 17, 0.08);
  --line-strong: rgba(17, 17, 17, 0.18);
  --mono: "IBM Plex Mono", "Cascadia Mono", "Aptos Mono", "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  --display: "Instrument Serif", Georgia, serif;
  --sans: "Aptos", "Segoe UI Variable Display", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
}

html {
  scrollbar-gutter: stable;
}

.home-page {
  overflow: hidden;
}

.portfolio-page,
.contact-page {
  overflow-x: hidden;
}

p,
h1 {
  margin: 0;
}

.stage {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 2.25rem;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 2.25rem;
  border: 1px solid var(--line);
  pointer-events: none;
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(17, 17, 17, 0.03), transparent 40%),
    radial-gradient(circle at 50% 54%, rgba(160, 112, 52, 0.045), transparent 30%),
    radial-gradient(circle at 50% 48%, rgba(17, 17, 17, 0.015), transparent 54%);
  pointer-events: none;
}

.chrome,
.context {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.chrome {
  align-items: center;
  padding-top: 0.15rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.chrome-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.brand-logo {
  display: block;
  width: clamp(9rem, 15vw, 12.5rem);
  height: auto;
}

.brand-link,
.nav-link {
  color: inherit;
  text-decoration: none;
}

.nav-link,
.context-label,
.context-note {
  color: var(--muted);
}

.nav-link {
  transition: color 160ms ease, opacity 160ms ease;
}

.home-page .chrome,
.portfolio-page .chrome,
.contact-page .chrome {
  padding: 0.55rem 0.7rem 0 0.7rem;
}

.home-page .context {
  padding: 0 0.7rem 3.4rem 0.7rem;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: var(--fg);
}

.nav-link:focus-visible,
.portfolio-card:focus-visible,
.brand-link:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 4px;
}

.centerpiece {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.canvas-shell {
  position: relative;
  width: min(74vw, 52rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.canvas-frame {
  position: relative;
  width: min(62vw, 38rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.signal-canvas {
  width: 100%;
  height: 100%;
  display: block;
  filter: none;
  cursor: grab;
  touch-action: none;
}

.signal-canvas.is-dragging {
  cursor: grabbing;
}

.context {
  width: min(100%, 34rem);
  justify-self: start;
  align-self: end;
  font-family: var(--sans);
  text-align: left;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0 0 0.85rem 0.15rem;
}

.context-label,
.context-note {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.context-copy {
  max-width: 24rem;
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.portfolio-stage {
  min-height: 100vh;
}

.portfolio-shell,
.contact-shell {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 2.2rem;
  width: min(100%, 76rem);
  margin: 0 auto;
  padding: 6rem 0 3rem;
}

.portfolio-intro {
  width: min(100%, 34rem);
  display: grid;
  gap: 0.9rem;
}

.contact-intro {
  width: min(100%, 42rem);
  display: grid;
  gap: 0.9rem;
}

.portfolio-title {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.contact-embed {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at top left, rgba(17, 17, 17, 0.03), transparent 60%);
  padding: 1rem;
}

.contact-embed iframe {
  display: block;
  width: 100%;
  min-height: 70vh;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.portfolio-card {
  min-height: 15rem;
  border: 1px solid var(--line);
  color: var(--fg);
  text-decoration: none;
  display: grid;
  align-content: end;
  gap: 0.55rem;
  padding: 1.1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at top left, rgba(17, 17, 17, 0.03), transparent 60%);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.portfolio-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.portfolio-name {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.portfolio-kind {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.portfolio-summary {
  max-width: 15rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(17, 17, 17, 0.72);
}

.portfolio-card-relaykeeper {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at top left, rgba(63, 85, 102, 0.09), transparent 58%);
}

.portfolio-card-wakesage {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at top left, rgba(124, 122, 70, 0.08), transparent 58%);
}

.portfolio-card-sheenbox {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at top left, rgba(121, 84, 54, 0.09), transparent 58%);
}

.portfolio-card-snapthree {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at top left, rgba(88, 72, 122, 0.09), transparent 58%);
}

@media (max-width: 720px) {
  .stage {
    padding: 1rem;
  }

  .stage::before {
    inset: 1rem;
  }

  .home-page .chrome,
  .portfolio-page .chrome,
  .contact-page .chrome {
    padding: 0.55rem 1rem 0 1rem;
  }

  .chrome {
    font-size: 0.64rem;
    letter-spacing: 0.12em;
  }

  .brand-logo {
    width: clamp(8rem, 34vw, 11rem);
  }

  .canvas-frame {
    width: min(88vw, 29rem);
  }

  .canvas-shell {
    width: min(94vw, 34rem);
  }

  .context {
    width: min(100%, 28rem);
    justify-self: center;
    align-items: center;
    text-align: center;
    padding-left: 0;
  }

  .context-copy {
    max-width: 18rem;
    font-size: clamp(1.35rem, 8vw, 1.8rem);
  }

  .portfolio-shell,
  .contact-shell {
    padding: 4rem 0 2rem;
    gap: 1.6rem;
  }

  .chrome-nav {
    gap: 0.9rem;
  }

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

  .portfolio-card {
    min-height: 10rem;
  }

  .portfolio-summary {
    max-width: 100%;
    font-size: 0.88rem;
  }

  .contact-embed {
    padding: 0.6rem;
  }
}
