/* Pixl production site - editorial boutique one-pager
   Palette locked light. Radius 0 everywhere.
   Hierarchy by space and hairlines; no shadows. */

:root {
  --paper: #F7F8F6;
  --ink: #161B1A;
  --ink-soft: #5A6663;
  --teal: #0B7A6E;
  --teal-bright: #11AEA0;
  --hairline: rgba(22, 27, 26, .14);
  --paper-dim: rgba(247, 248, 246, .72);
  --font: "Satoshi", "Segoe UI", system-ui, sans-serif;
  --container: 1200px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --space-section: clamp(6rem, 11vw, 10rem);
  --z-motion: 5;
  --z-header: 40;
  --z-topbar: 41;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: 7rem;
}

body {
  font-family: var(--font);
  font-size: clamp(1.0625rem, 1rem + .2vw, 1.125rem);
  line-height: 1.65;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--teal);
  color: #FFFFFF;
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100vh;
  left: .5rem;
  z-index: 100;
  padding: .7rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  text-decoration: none;
}

.skip-link:focus-visible {
  top: .5rem;
}

/* ---------- Type ---------- */

h1 {
  font-size: clamp(2.9rem, 5.2vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: .98;
}

.accent {
  color: var(--teal);
}

.section-title {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.02;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* ---------- Links: underline draw ---------- */

.link-draw {
  text-decoration: none;
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
}

.link-draw:hover,
.link-draw:focus-visible {
  color: var(--teal);
  background-size: 100% 1px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: .95rem 1.9rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
}

.btn:hover,
.btn:focus-visible {
  background: var(--teal);
  color: #FFFFFF;
}

.btn:active {
  transform: translateY(1px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--teal);
  background-size: 100% 1px;
}

.text-link .arrow {
  flex: none;
}

/* ---------- Topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-topbar);
  background: var(--teal);
}

.topbar-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 40px;
}

.topbar nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.topbar nav a {
  font-size: .85rem;
  font-weight: 500;
  color: #FFFFFF;
  text-decoration: none;
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
}

.topbar nav a:hover,
.topbar nav a:focus-visible {
  color: #FFFFFF;
  background-size: 100% 1px;
}

.topbar :focus-visible {
  outline-color: #FFFFFF;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 40px;
  z-index: var(--z-header);
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 64px;
}

.brand {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1;
}

.brand a {
  text-decoration: none;
}

.brand-px {
  display: inline-block;
  width: .4em;
  height: .4em;
  margin-left: .16em;
  background: var(--teal-bright);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  font-size: .95rem;
  font-weight: 500;
}

.nav-contact {
  color: var(--teal);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: .5rem;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  align-content: center;
  min-height: 640px;
  min-height: calc(100dvh - 104px);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
  width: 100%;
}

.hero-sub {
  max-width: 34ch;
  margin-top: 1.75rem;
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  color: var(--ink-soft);
}

.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin-top: 2.75rem;
}

/* Sparse pixel composition: 8x8 invisible grid, 10 squares */

.px-field {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 520px;
  justify-self: end;
}

.px {
  background: var(--ink);
}

.px.t {
  background: var(--teal-bright);
}

.px1 { grid-area: 1 / 2 / 3 / 4; }
.px2 { grid-area: 1 / 6 / 2 / 7; }
.px3 { grid-area: 2 / 8 / 3 / 9; }
.px4 { grid-area: 3 / 4 / 4 / 5; }
.px5 { grid-area: 5 / 1 / 6 / 2; }
.px6 { grid-area: 4 / 6 / 6 / 8; }
.px7 { grid-area: 6 / 3 / 7 / 4; }
.px8 { grid-area: 6 / 8 / 7 / 9; }
.px9 { grid-area: 7 / 5 / 8 / 6; }
.px10 { grid-area: 8 / 2 / 9 / 3; }

/* ---------- Client logo band ---------- */

.logos-section {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.logos-title {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: clamp(2.25rem, 4.5vw, 3.25rem);
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  justify-items: center;
  gap: clamp(2rem, 4vw, 3.25rem);
}

/* Logos vary from square marks to wide wordmarks, so both axes are
   capped and the aspect ratio is left alone. A fixed height with auto
   width would let a 4.6:1 wordmark overflow its column. */
.logos-grid img {
  max-height: clamp(3.25rem, 4.5vw, 5rem);
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  mix-blend-mode: multiply;
  opacity: .8;
}

.logos-grid img:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* ---------- Work index ---------- */

.work-section {
  padding-block: var(--space-section);
}

.work-row {
  display: grid;
  grid-template-columns: 1fr .5fr 1.15fr 1.3fr;
  gap: 1rem 2rem;
  align-items: baseline;
  padding-block: 1.7rem;
  cursor: default;
}

.work-row + .work-row {
  border-top: 1px solid var(--hairline);
}

.work-name {
  display: inline-block;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.15;
}

.work-row:hover .work-name {
  transform: translateX(8px);
  color: var(--teal);
}

.work-industry {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.work-about {
  font-size: .95rem;
  color: var(--ink-soft);
  max-width: 38ch;
}

.work-desc {
  font-size: 1rem;
  max-width: 42ch;
}

/* ---------- Services ---------- */

.services-section {
  padding-block: 0 var(--space-section);
}

.services-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border: 1px solid var(--hairline);
}

.svc {
  padding: clamp(2rem, 4vw, 3.25rem);
}

.svc-main {
  grid-row: 1 / span 2;
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.svc + .svc + .svc {
  border-top: 1px solid var(--hairline);
}

.svc h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: .85rem;
}

.svc p {
  max-width: 46ch;
  color: var(--ink-soft);
}

.svc-main p {
  color: var(--ink);
}

/* ---------- Numbers band ---------- */

.band {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(4rem, 7vw, 5.5rem);
}

.band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 2rem;
}

.stat-value {
  display: block;
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1;
}

.stat-value-word {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
}

.stat-caption {
  display: block;
  margin-top: .6rem;
  font-size: .95rem;
  font-weight: 500;
  color: var(--paper-dim);
}

/* ---------- Story ---------- */

.story-section {
  padding-block: var(--space-section);
}

.story-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.story-lede {
  max-width: 62ch;
}

.timeline {
  margin-top: 3rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1.5rem;
  padding: .85rem 0;
}

.tl-year {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.45;
}

.tl-line {
  align-self: center;
  color: var(--ink-soft);
}

.photo-slot {
  border: 1px solid var(--hairline);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.story-signature {
  width: 100%;
  max-width: 170px;
  margin-top: 2.5rem;
  mix-blend-mode: multiply;
}

/* ---------- Hosting ---------- */

.hosting-section {
  padding-block: 0 var(--space-section);
}

.hosting-lead p {
  max-width: 62ch;
}

.hosting-lead p + p {
  margin-top: 1.1rem;
}

.pull {
  margin-block: clamp(2.5rem, 5vw, 3.5rem);
  border-left: 3px solid var(--teal);
  padding-left: clamp(1.5rem, 3vw, 2.25rem);
}

.pull p {
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.3;
  max-width: 24ch;
}

.tiers {
  width: 100%;
  max-width: 680px;
  border-collapse: collapse;
}

.tiers th,
.tiers td {
  text-align: left;
  padding: .95rem .5rem;
  font-size: 1rem;
}

.tiers tr + tr th,
.tiers tr + tr td {
  border-top: 1px solid var(--hairline);
}

.tiers th {
  font-weight: 700;
  white-space: nowrap;
}

.tier-price {
  font-weight: 500;
}

.tier-use {
  text-align: right;
  color: var(--ink-soft);
}

.tag {
  margin-left: .6rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--teal);
  white-space: nowrap;
}

.tiers-note {
  margin-top: 1.4rem;
  font-size: .95rem;
  color: var(--ink-soft);
  max-width: 680px;
}

.hosting-more p {
  font-size: 1.1rem;
  max-width: 46ch;
  margin-bottom: 1.1rem;
}

/* ---------- Team ---------- */

.team-section {
  padding-block: 0 var(--space-section);
}

.team-row {
  display: grid;
  grid-template-columns: 44px minmax(180px, 240px) 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
  padding-block: 1.6rem;
}

.team-row + .team-row {
  border-top: 1px solid var(--hairline);
}

.team-tile {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.tile-founder {
  background: var(--teal-bright);
  color: var(--ink);
}

.team-name {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
}

.team-role {
  display: block;
  margin-top: .15rem;
  font-size: .95rem;
  color: var(--ink-soft);
}

.team-bio {
  font-size: 1rem;
  max-width: 58ch;
  align-self: center;
}

/* ---------- Contact ---------- */

.contact-section {
  padding-block: 0 var(--space-section);
}

.contact-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.contact-body {
  max-width: 62ch;
}

.contact-mail {
  display: inline-block;
  margin-top: 2.25rem;
  font-size: clamp(1.4rem, 3.4vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .3em;
}

.contact-mail:hover,
.contact-mail:focus-visible {
  color: var(--ink);
}

.contact-mail:active {
  transform: translateY(1px);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: 2.75rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.brand-small {
  font-size: 1.15rem;
}

.footer-right {
  text-align: right;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .4rem 1.5rem;
}

.footer-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.footer-legal {
  margin-top: 1.1rem;
  font-size: .85rem;
  color: var(--ink-soft);
}

/* ---------- Article page ---------- */

.article-section {
  padding-block: clamp(3rem, 6vw, 5rem) var(--space-section);
}

.article-header {
  max-width: 68ch;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.article-header h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.05;
}

.post-byline {
  margin-top: 1.1rem;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.post-category {
  margin-top: .35rem;
  font-size: .85rem;
  color: var(--ink-soft);
}

.article-back {
  display: inline-block;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  font-weight: 500;
}

/* ---------- Share row ---------- */

.share-row {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--hairline);
}

.share-label {
  font-size: .95rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hairline);
  color: var(--ink);
  text-decoration: none;
}

.share-btn:hover,
.share-btn:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.share-btn:active {
  transform: translateY(1px);
}

.share-icon {
  width: 20px;
  height: 20px;
}

.share-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding-inline: 1.1rem;
  border: 1px solid var(--hairline);
  background: none;
  color: var(--ink);
  font-family: inherit;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
}

.share-copy:hover,
.share-copy:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.share-copy:active {
  transform: translateY(1px);
}

/* ---------- Blog index ---------- */

.blog-lead-section {
  padding-block: clamp(4.5rem, 8vw, 6.5rem) clamp(2rem, 4vw, 3rem);
}

.blog-lead-section h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
}

.blog-intro {
  margin-top: 1.25rem;
  max-width: 50ch;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--ink-soft);
}

.blog-index-section {
  padding-block: 0 var(--space-section);
}

.blog-year {
  margin-top: clamp(2.75rem, 5vw, 3.75rem);
  margin-bottom: .5rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink-soft);
}

.blog-year-group:first-child .blog-year {
  margin-top: 0;
}

.blog-row {
  padding-block: 1.6rem;
}

.blog-row + .blog-row {
  border-top: 1px solid var(--hairline);
}

.blog-row-title {
  display: block;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.25;
  text-decoration: none;
}

.blog-row-title:hover,
.blog-row-title:focus-visible {
  color: var(--teal);
}

.blog-row-meta {
  display: block;
  margin-top: .35rem;
  font-size: .9rem;
  color: var(--ink-soft);
}

.blog-row-desc {
  margin-top: .5rem;
  max-width: 62ch;
  font-size: 1rem;
}

/* ---------- 404 ---------- */

.notfound-section {
  min-height: calc(100dvh - 104px);
  display: grid;
  align-content: center;
  padding-block: clamp(4rem, 8vw, 7rem);
}

.notfound-section h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
}

.notfound-section p {
  margin-top: 1.25rem;
  max-width: 46ch;
  color: var(--ink-soft);
}

.notfound-links {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

/* ---------- Blog prose ---------- */

.prose {
  max-width: 68ch;
  font-size: clamp(1.0625rem, 1rem + .15vw, 1.125rem);
  line-height: 1.7;
}

.prose > * {
  margin-top: 1.5em;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose h2 {
  font-weight: 700;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  letter-spacing: -.015em;
  line-height: 1.25;
  margin-top: 2.6em;
  margin-bottom: .1em;
}

.prose h3 {
  font-weight: 700;
  font-size: clamp(1.2rem, 1.9vw, 1.45rem);
  letter-spacing: -.01em;
  line-height: 1.3;
  margin-top: 2.2em;
  margin-bottom: .1em;
}

.prose h2 + *,
.prose h3 + * {
  margin-top: .85em;
}

.prose img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  border: 1px solid var(--hairline);
}

.prose figure {
  margin-top: 2em;
}

.prose figure img {
  margin: 0;
}

.prose figcaption {
  margin-top: .65em;
  font-size: .9rem;
  color: var(--ink-soft);
}

.prose pre {
  padding: 1.4rem 1.6rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0;
  overflow-x: auto;
  font-size: .88rem;
  line-height: 1.6;
}

.prose pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: .9em;
  background: rgba(22, 27, 26, .06);
  padding: .15em .4em;
}

.prose blockquote {
  border-left: 3px solid var(--teal);
  padding-left: clamp(1.25rem, 3vw, 1.75rem);
}

.prose blockquote p {
  font-size: 1.08em;
  font-weight: 500;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: .5em;
}

.prose li > ul,
.prose li > ol {
  margin-top: .5em;
}

.prose a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

.prose a:hover,
.prose a:focus-visible {
  color: var(--ink);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}

.prose th,
.prose td {
  text-align: left;
  padding: .75rem .6rem;
  border-top: 1px solid var(--hairline);
}

.prose th {
  font-weight: 700;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--hairline);
}

.prose strong {
  font-weight: 700;
}

/* ---------- Motion (all gated) ---------- */

.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .motion .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .65s ease, transform .65s ease;
  }

  .motion .reveal.is-in {
    opacity: 1;
    transform: none;
  }

  .motion .hero-copy > * {
    opacity: 0;
    animation: rise .5s cubic-bezier(.22, .61, .36, 1) forwards;
  }

  .motion .hero-copy > :nth-child(1) { animation-delay: .06s; }
  .motion .hero-copy > :nth-child(2) { animation-delay: .12s; }
  .motion .hero-copy > :nth-child(3) { animation-delay: .18s; }

  .motion .px {
    opacity: 0;
    animation: pxin .45s ease forwards;
  }

  .motion .px:nth-child(1) { animation-delay: .35s; }
  .motion .px:nth-child(2) { animation-delay: .47s; }
  .motion .px:nth-child(3) { animation-delay: .59s; }
  .motion .px:nth-child(4) { animation-delay: .71s; }
  .motion .px:nth-child(5) { animation-delay: .83s; }
  .motion .px:nth-child(6) { animation-delay: .95s; }
  .motion .px:nth-child(7) { animation-delay: 1.07s; }
  .motion .px:nth-child(8) { animation-delay: 1.19s; }
  .motion .px:nth-child(9) { animation-delay: 1.31s; }
  .motion .px:nth-child(10) { animation-delay: 1.43s; }

  .btn {
    transition: background-color .2s ease, color .2s ease;
  }

  .link-draw,
  .text-link,
  .contact-mail,
  .topbar nav a {
    transition: background-size .25s ease, color .2s ease, background-color .2s ease;
  }

  .share-btn,
  .share-copy {
    transition: background-color .2s ease, color .2s ease;
  }

  .work-name {
    transition: transform .25s ease, color .25s ease;
  }

  .logos-grid img {
    transition: filter .25s ease, opacity .25s ease;
  }

  .text-link .arrow {
    transition: transform .2s ease;
  }

  .text-link:hover .arrow {
    transform: translateX(4px);
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes pxin {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .px-field {
    max-width: 260px;
    justify-self: start;
    margin-top: 1.5rem;
  }

  .logos-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .photo-slot {
    max-width: 480px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1.25rem;
  }

  .site-nav li + li {
    border-top: 1px solid var(--hairline);
  }

  .site-nav a {
    display: block;
    padding: .85rem 0;
    background: none;
  }

  .logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-row {
    grid-template-columns: 1fr;
    gap: .35rem;
    padding-block: 1.4rem;
  }

  .work-about {
    margin-top: .15rem;
  }

  .work-desc {
    margin-top: .25rem;
  }

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

  .svc-main {
    grid-row: auto;
    border-right: none;
    border-bottom: 1px solid var(--hairline);
  }

  .svc + .svc + .svc {
    border-top: 1px solid var(--hairline);
  }

  .band-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-row {
    grid-template-columns: 44px 1fr;
    gap: .85rem 1.25rem;
  }

  .team-bio {
    grid-column: 2;
    align-self: start;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-right {
    text-align: left;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .band-grid {
    grid-template-columns: 1fr;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: .1rem;
    padding-block: .75rem;
  }

  .tiers th,
  .tiers td {
    padding: .8rem .35rem;
    font-size: .92rem;
  }

  .tag {
    display: block;
    margin: .2rem 0 0;
  }
}

/* ---------- Hosting page (/hosting/) ----------
   Reuses .hosting-lead, .pull, .tiers, .tiers-note, .tier-price and .tag
   from the homepage teaser/table styles above. .tier-use is redefined
   here (it was unused elsewhere) to sit under the plan name instead of
   right-aligned, and .tiers-wrap/.is-popular are new. */

.hosting-page-lead {
  padding-block: clamp(4.5rem, 8vw, 6.5rem) clamp(2rem, 4vw, 3rem);
}

.hosting-page-lead h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  max-width: 18ch;
}

.hosting-page-lead .hosting-lead {
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

.hosting-figure-section {
  padding-block: 0 var(--space-section);
}

.hosting-figure img {
  border: 1px solid var(--hairline);
}

.hosting-figure figcaption {
  margin-top: .85rem;
  font-size: .9rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

.hosting-stack-section,
.hosting-includes-section,
.hosting-plans-section,
.hosting-excludes-section,
.hosting-faq-section,
.hosting-cta-section {
  padding-block: 0 var(--space-section);
}

.hosting-stack-copy {
  max-width: 68ch;
}

.hosting-includes-list {
  max-width: 68ch;
}

.hosting-includes-list li {
  position: relative;
  padding-left: 1.4em;
  padding-block: .85rem;
}

.hosting-includes-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35em;
  width: 6px;
  height: 6px;
  background: var(--teal);
}

.hosting-includes-list li + li {
  border-top: 1px solid var(--hairline);
}

.tiers-wrap {
  overflow-x: auto;
}

.hosting-tiers {
  max-width: none;
  min-width: 760px;
}

.hosting-tiers th[scope="row"] {
  white-space: normal;
}

.tier-name {
  display: block;
  font-weight: 700;
}

.tier-use {
  display: block;
  margin-top: .2rem;
  text-align: left;
  font-size: .85rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.is-popular {
  background: rgba(11, 122, 110, .05);
}

.hosting-excludes-list {
  max-width: 68ch;
  display: grid;
  gap: 1.75rem;
}

.hosting-faq-list {
  max-width: 68ch;
  display: grid;
  gap: clamp(2rem, 4vw, 2.75rem);
}

.hosting-faq-item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: .5rem;
}

.hosting-faq-item p {
  color: var(--ink-soft);
}

.hosting-cta-copy {
  max-width: 56ch;
  margin-bottom: 1.75rem;
}

@media (max-width: 560px) {
  .hosting-tiers {
    min-width: 640px;
  }
}
