/* Portfolio-Freelance only */

/* ---------- Home hero: the street ---------- */
.hero {
  padding-top: clamp(36px, 4.5vw, 64px);
}
.hero h1 {
  font-size: clamp(2.4rem, 1.1rem + 4.4vw, 4.8rem);
  max-width: 15ch;
}
.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px 56px;
  align-items: end;
}
.hero-row p {
  max-width: 42ch;
  color: var(--soft);
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem);
}
.hero-row .actions {
  margin-top: 22px;
}
.street {
  position: relative;
  margin-top: clamp(28px, 4vw, 56px);
  background: var(--ink);
}
.street canvas {
  width: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.shop-hit {
  position: absolute;
  display: block;
  z-index: 2;
}
.shop-hit:focus-visible {
  outline: 3px solid var(--wisteria);
  outline-offset: 2px;
}
.shop-tip {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -100%);
  margin: 0;
  padding: 6px 12px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--pixel);
  font-size: clamp(0.85rem, 0.7rem + 0.4vw, 1rem);
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  box-shadow:
    0 -3px 0 0 var(--ink),
    0 3px 0 0 var(--ink),
    -3px 0 0 0 var(--ink),
    3px 0 0 0 var(--ink);
}
.shop-tip[hidden] {
  display: none;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding-block: 22px 40px;
  font-family: var(--pixel);
}
.legend > span {
  color: var(--soft);
  margin-right: 4px;
}
.legend a {
  padding: 4px 10px;
  color: var(--paper);
  text-decoration: none;
  box-shadow: inset 0 -3px 0 0 var(--dusk);
}
.legend a:hover,
.legend a:focus-visible {
  background: var(--wisteria);
  color: var(--ink);
  box-shadow: none;
}

/* ---------- Home: intro strip ---------- */
.intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.intro img {
  width: clamp(120px, 16vw, 190px);
  margin: 3px;
}
.intro h2 {
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem);
}
.intro p {
  max-width: 60ch;
  margin-top: 14px;
  color: var(--soft);
}
.intro .link {
  display: inline-block;
  margin-top: 18px;
}

/* ---------- Demo cards (home) ---------- */
.demo-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin-top: clamp(32px, 5vw, 56px);
}
a.demo-card {
  display: block;
  text-decoration: none;
  transition: transform 0.08s steps(1);
}
a.demo-card:hover {
  transform: translate(-3px, -3px);
  box-shadow:
    0 -3px 0 0 var(--ink),
    0 3px 0 0 var(--ink),
    -3px 0 0 0 var(--ink),
    3px 0 0 0 var(--ink),
    9px 9px 0 0 var(--wisteria);
}
a.demo-card:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--wisteria);
  text-underline-offset: 6px;
}
a.demo-card:focus-visible {
  outline-offset: 8px;
}
.demo-card .win-body {
  display: grid;
  gap: 12px;
  padding: 20px;
}
.demo-card h3 {
  font-size: 1.6rem;
}
.demo-card p {
  color: var(--soft);
}
.demo-card .shot {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin: 0 0 6px;
}
.demo-card .shot img {
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.build-site {
  aspect-ratio: 16 / 10;
  margin-bottom: 6px;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(-45deg, var(--dusk) 0 14px, var(--grape) 14px 28px);
}
.build-site span {
  padding: 6px 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--pixel);
  font-weight: 600;
}

/* Storefront close-ups drawn by street.js */
.shop-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--ink);
  overflow: hidden;
}
.shop-stage canvas {
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.card-stage {
  aspect-ratio: 16 / 10;
  margin-bottom: 6px;
}
.card-stage canvas {
  width: auto;
  height: 100%;
}
.stage-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  background: repeating-linear-gradient(-45deg, var(--wisteria) 0 8px, var(--paper) 8px 16px);
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 0.9rem;
  font-weight: 700;
}

/* ---------- Steps: a short sequence ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: clamp(32px, 5vw, 56px);
  counter-reset: step;
}
.steps li {
  position: relative;
  padding-top: 64px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 3px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--wisteria);
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 1.6rem;
  font-weight: 700;
  box-shadow:
    0 -3px 0 0 var(--edge),
    0 3px 0 0 var(--edge),
    -3px 0 0 0 var(--edge),
    3px 0 0 0 var(--edge);
}
.steps li::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 62px;
  right: -16px;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--edge) 0 8px, transparent 8px 14px);
}
.steps li:last-child::after {
  display: none;
}
.steps h3 {
  font-size: 1.35rem;
}
.steps p {
  margin-top: 8px;
  color: var(--soft);
}

/* ---------- Demos page ---------- */
.demo {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.demo + .demo {
  margin-top: clamp(72px, 10vw, 128px);
}
.demo-visual {
  position: relative;
  padding: 0 9% 8% 0;
}
.demo-visual .shot {
  box-shadow:
    0 -3px 0 0 var(--ink),
    0 3px 0 0 var(--ink),
    -3px 0 0 0 var(--ink),
    3px 0 0 0 var(--ink),
    9px 9px 0 0 var(--wisteria);
}
.demo-visual .phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 23%;
  margin: 0;
  border: 5px solid var(--ink);
  background: var(--ink);
  box-shadow: 6px 6px 0 0 var(--mauve);
}
.demo-visual .phone img {
  aspect-ratio: 9 / 17;
  object-fit: cover;
  object-position: top;
}
.demo-body h2 {
  margin-top: 16px;
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem);
}
.demo-for {
  margin-top: 8px;
  font-family: var(--pixel);
  font-size: 1.15rem;
  color: var(--grape);
}
.demo-body > p {
  margin-top: 16px;
  color: var(--soft);
}
.checklist {
  display: grid;
  gap: 10px;
  margin: 22px 0 28px;
}
.checklist li {
  position: relative;
  padding-left: 32px;
  line-height: 1.45;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 16px;
  height: 16px;
  box-shadow: inset 0 0 0 3px var(--ink);
}
.checklist.done li::before {
  background:
    linear-gradient(var(--ink), var(--ink)) 4px 4px / 8px 8px no-repeat,
    var(--wisteria);
}

.demo-note {
  margin-top: clamp(56px, 8vw, 96px);
  padding: 22px 26px;
  max-width: 70ch;
  color: var(--soft);
}

/* ---------- Services page ---------- */
.menu-board {
  margin-top: clamp(32px, 5vw, 56px);
}
.menu-board .win-body {
  padding: clamp(8px, 2vw, 20px) clamp(18px, 3vw, 36px);
}
.service {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: 10px 36px;
  align-items: baseline;
  padding-block: clamp(20px, 3vw, 30px);
}
.service + .service {
  border-top: 3px dashed var(--grape);
}
.service h3 {
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
}
.service p {
  color: var(--soft);
}
.service .good-for {
  font-family: var(--pixel);
  font-size: 0.98rem;
  color: var(--grape);
}
.included {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}
.included li {
  margin: 3px;
  padding: 10px 16px;
  background: var(--paper);
  font-family: var(--pixel);
  font-weight: 500;
}

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.portrait {
  position: sticky;
  top: calc(var(--header) + 24px);
}
.portrait .frame {
  margin: 3px;
  background: var(--ink);
}
.portrait img,
.portrait canvas {
  width: 100%;
  aspect-ratio: 560 / 670;
  image-rendering: pixelated;
}
.portrait figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  font-family: var(--pixel);
  color: var(--soft);
}
.enhance[hidden] {
  display: none;
}
.story h2 {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem);
}
.story p {
  max-width: 60ch;
  margin-top: 18px;
  color: var(--soft);
}
.story h3 {
  margin-top: 44px;
  font-size: 1.5rem;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 40px 0 0;
}
.facts div {
  margin: 3px;
  padding: 16px;
  background: var(--paper);
  box-shadow:
    0 -3px 0 0 var(--ink),
    0 3px 0 0 var(--ink),
    -3px 0 0 0 var(--ink),
    3px 0 0 0 var(--ink);
}
.facts dt {
  font-family: var(--pixel);
  font-size: 0.9rem;
  color: var(--grape);
}
.facts dd {
  margin: 4px 0 0;
  font-family: var(--pixel);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.25;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .demo-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 960px) {
  .demo-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 24px;
  }
  .steps li:nth-child(2)::after {
    display: none;
  }
}
@media (max-width: 860px) {
  .hero-row,
  .demo,
  .about-grid,
  .service {
    grid-template-columns: minmax(0, 1fr);
  }
  .portrait {
    position: static;
    max-width: 420px;
  }
  .demo-visual {
    padding-right: 12%;
  }
}
@media (max-width: 640px) {
  .demo-cards {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
  }
}
@media (max-width: 560px) {
  .legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .legend > span {
    grid-column: 1 / -1;
  }
  .legend a {
    padding-inline: 4px;
    text-align: center;
    white-space: nowrap;
    font-size: 0.92rem;
  }
  .facts {
    gap: 22px;
  }
  .intro {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps li::after {
    display: none;
  }
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .demo-visual .phone {
    width: 30%;
  }
}

/* ---------- Social links (About) ---------- */
.story #follow {
  margin-top: 48px;
}
.social {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.social-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 10px;
  margin: 3px;
  padding: 12px 14px;
  background: var(--paper);
  font-family: var(--pixel);
  font-weight: 600;
  text-decoration: none;
  box-shadow:
    0 -3px 0 0 var(--ink),
    0 3px 0 0 var(--ink),
    -3px 0 0 0 var(--ink),
    3px 0 0 0 var(--ink);
}
.social-item svg {
  grid-row: span 2;
  width: 24px;
  height: 24px;
}
.social-item small {
  font-size: 0.8rem;
  color: var(--grape);
}
a.social-item:hover {
  background: var(--wisteria);
}
.social-item.is-soon {
  background: transparent;
  color: var(--dusk);
}
