.selected-work {
  --ink: #f6f3f8;
  color: var(--ink);
  background: radial-gradient(ellipse 62rem 45rem at 85% 5%, #2b1248, transparent 76%), #0b0b0f;
  font: 1rem/1.65 Arial, Helvetica, system-ui, sans-serif;
}
:where(.selected-work) :is(h1, h2, h3, p) { margin: 0; }
:where(.selected-work) :is(h1, h2, h3) { line-height: 1.1; letter-spacing: -.045em; text-wrap: balance; }
:where(.selected-work) h1 { max-width: none; }
:where(.selected-work) h2 { font-size: clamp(1.85rem, 4vw, 3rem); }
:where(.selected-work) h3 { font-size: clamp(1.22rem, 2vw, 1.62rem); }
:where(.selected-work) p { color: var(--muted); }
.selected-work .project-link { color: var(--ink); }
.selected-work a:hover { color: #ffdeed; }
.selected-work a:focus-visible { outline: 3px solid #d7b6f7; outline-offset: 5px; }
.wrap { width: min(71rem, calc(100% - 4rem)); margin-inline: auto; }

.opening { padding-block: clamp(2.6rem, 7vw, 5.7rem) clamp(2rem, 4.3vw, 3.3rem); }
.opening h1 { font-size: clamp(2.85rem, 8vw, 6.35rem); letter-spacing: -.067em; font-weight: 650; }
.opening h1 span {
  color: var(--purple);
  background: linear-gradient(100deg, #f0dbff, #c9a1f3 62%, #ef9dc6);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.opening-text { font-size: clamp(1.03rem, 2.1vw, 1.25rem); max-width: 56ch; margin-top: 1.1rem; }

.project-jumps { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-top: .55rem; }
.project-jumps a { padding-block: .55rem; }

.feature {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.18fr);
  gap: clamp(1.5rem, 4.4vw, 3.75rem);
  align-items: center;
  padding: clamp(1.1rem, 4.5vw, 3.35rem);
  background: linear-gradient(122deg, #191222, #171020 56%, #271738);
  border: 1px solid #674b7e;
  border-radius: .875rem;
  box-shadow: 0 1.5rem 4rem #0003;
}
.feature-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.feature-copy h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
.tag {
  display: inline-block;
  width: fit-content;
  padding: .22rem .72rem;
  border: 1px solid #8a70a3;
  border-radius: .25rem;
  color: #e5d3f2;
  background: #241631;
  font-size: .875rem;
  font-weight: 600;
}
.portfolio-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: .64rem 1.05rem;
  min-height: 3.05rem;
  border: 1px solid #d6a8c0;
  border-radius: .3rem;
  background: var(--red);
  color: var(--ink);
  font-size: .94rem;
  font-weight: 650;
  text-decoration: none;
}
.portfolio-button:hover { background: #87023f; color: white; }

.proof-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.proof-card {
  min-width: 0;
  border: 1px solid #74556c;
  border-radius: .55rem;
  background: #170f18;
  overflow: hidden;
}
.proof-card.after { border-color: #9b75b8; background: #1b1226; }
.address {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .57rem .8rem;
  border-bottom: 1px solid #ffffff28;
  background: #ffffff09;
  color: #eee0f7;
  font: .82rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
}
.address span:first-child { width: .4rem; height: .4rem; border-radius: 50%; background: #e4bad6; flex: 0 0 auto; }
.after .address span:first-child { background: #d7b6f7; }
.proof-body { display: grid; align-content: start; gap: .6rem; padding: .85rem; }
.proof-label { font-size: .875rem; font-weight: 650; color: #e7d4f3; }
.proof-body h3 { font-size: 1.13rem; }
.proof-body p:not(.proof-label) { font-size: .95rem; line-height: 1.55; }
.proof-result {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  border-top: 1px solid #c5a4d74d;
  margin-top: 1rem;
  padding-top: .85rem;
}
.proof-result svg { flex: 0 0 1.2rem; margin-top: .15rem; stroke: #e0bdf8; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.proof-result p + p { margin-top: .22rem; font-size: .95rem; line-height: 1.52; }

.demo-section { padding-block: clamp(2.9rem, 7vw, 5.6rem); }
.demo-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: .47rem 1.25rem; margin-bottom: 1.4rem; }
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.demo-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: .7rem; background: var(--panel); }
.demo-image { display: block; background: #120e19; aspect-ratio: 16 / 8; overflow: hidden; border-bottom: 1px solid var(--line); }
.demo-image img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.demo-copy { padding: clamp(1rem, 2.6vw, 1.6rem); display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: .7rem; }
.demo-copy h3 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
.project-link { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: auto; font-weight: 650; }

.enquiry {
  display: flex;
  gap: 1rem 2.5rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.8rem 2.4rem;
  border-top: 1px solid var(--line);
}
.enquiry h2 { font-size: clamp(1.5rem, 3vw, 2.22rem); margin-bottom: .6rem; }
.enquiry .portfolio-button { flex: 0 0 auto; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2rem); }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .enquiry { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .proof-body { padding: .75rem; }
}
@media (max-width: 355px) {
  .proof-comparison { grid-template-columns: minmax(0, 1fr); }
}
@media (forced-colors: active) {
  .opening h1 span { background: none; -webkit-text-fill-color: currentColor; }
  .portfolio-button { border: 1px solid ButtonText; }
}
