/**
 * Portfólio Dev — Mercer Design System (Inspired by mercer-astro)
 *
 * Estética editorial, mecânica e brutalista contemporânea.
 * Zero clichês de IA (sem degradês genéricos, sem cards arredondados idênticos, sem excesso de blur).
 *
 * @package PortfolioDev
 */

:root {
  /* ── Pack 1: Volt (Default — Near-Black + Acid Green) ── */
  --bg: #0a0b09;
  --bg2: #111310;
  --ink: #f4f4f2;
  --body: #f4f4f2c7;
  --quiet: #f4f4f28c;
  --rule: #f4f4f238;
  --rule-soft: #f4f4f221;
  --spot: #c8ff16;
  --spot-ink: #111500;

  /* ── Typography Stack (Apple SF Pro Display/Text aesthetic via Google Fonts Inter) ── */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
  --disp: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Monaco, Consolas, ui-monospace, monospace;

  /* ── Spacings & Constants ── */
  --gap: clamp(20px, 3.6vw, 56px);
  --headh: 64px;
}

/* ── Pack 2: Plasma (Violet-Black + Hot Magenta) ── */
body[data-pack="plasma"] {
  --bg: #0d070b;
  --bg2: #150c12;
  --spot: #ff3ea5;
  --spot-ink: #1f0212;
}

/* ── Pack 3: Signal (Warm Black + Safety Orange) ── */
body[data-pack="signal"] {
  --bg: #0c0a08;
  --bg2: #14110d;
  --spot: #ff5a1f;
  --spot-ink: #1d0800;
}

/* ── Pack 4: Riso (Paper + Risograph Blue) ── */
body[data-pack="riso"] {
  --bg: #f1f0ea;
  --bg2: #e7e5dd;
  --ink: #141411;
  --body: #141411d1;
  --quiet: #14141194;
  --rule: #14141147;
  --rule-soft: #14141124;
  --spot: #2b3be0;
  --spot-ink: #f1f0ea;
}

/* ── Reset & Core ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
}

body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16.5px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection {
  background: var(--spot);
  color: var(--spot-ink);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ── Correção Crítica de SVGs (Prevenção de Ícones Gigantes) ── */
svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  max-width: 100%;
}

.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }
.w-3\.5, .h-3\.5 { width: 14px; height: 14px; }
.w-4, .h-4 { width: 16px; height: 16px; }
.w-5, .h-5 { width: 20px; height: 20px; }

/* ── Typography & Headings ── */
h1, h2, h3, .disp {
  font-family: var(--disp);
  color: var(--ink);
  letter-spacing: -0.03em;
  font-weight: 700;
  line-height: 0.95;
}

.stop {
  color: var(--spot);
}

.wrap {
  max-width: 1560px;
  padding-left: var(--gap);
  padding-right: var(--gap);
  margin: 0 auto;
}

.mono {
  font-family: var(--mono);
  letter-spacing: 0.03em;
  color: var(--quiet);
  text-transform: lowercase;
  font-size: 12.5px;
}

p a, li a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--spot);
  text-underline-offset: 3px;
  font-weight: 500;
  text-decoration-thickness: 2px;
}

p a:hover, li a:hover {
  color: var(--spot);
}

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

/* ── Botões & Links de Destaque ── */
.btn {
  font-family: var(--sans);
  letter-spacing: -0.005em;
  background: var(--spot);
  color: var(--spot-ink);
  border: 2px solid var(--spot);
  cursor: pointer;
  white-space: nowrap;
  border-radius: 0;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-size: 15.5px;
  font-weight: 700;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s, border-color 0.2s, color 0.2s;
  display: inline-flex;
}

.btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.btn:active {
  transform: scale(0.97);
}

.btn.ghost {
  color: var(--ink);
  border-color: var(--rule);
  background: transparent;
}

.btn.ghost:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.alink {
  font-family: var(--sans);
  color: var(--ink);
  border-bottom: 3px solid var(--spot);
  padding-bottom: 3px;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
}

.alink:hover {
  color: var(--spot);
}

.lbl {
  font-family: var(--mono);
  letter-spacing: 0.04em;
  color: var(--quiet);
  text-transform: lowercase;
  font-size: 11.5px;
  font-style: normal;
}
.lbl::before { content: "["; }
.lbl::after { content: "]"; }

.nsq {
  background: var(--spot);
  color: var(--spot-ink);
  font-family: var(--mono);
  justify-content: center;
  align-items: center;
  padding: 9px 12px;
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
}

/* ── Top Header Bar ── */
.top {
  z-index: 50;
  border-bottom: 2px solid var(--rule);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
}

.top .wrap {
  min-height: var(--headh);
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  display: flex;
}

.who {
  font-family: var(--disp);
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
  font-size: 20px;
  font-weight: 700;
}

.who::after {
  content: ".";
  color: var(--spot);
}

.who span {
  font-family: var(--mono);
  letter-spacing: 0.03em;
  color: var(--quiet);
  text-transform: lowercase;
  margin-left: 14px;
  font-size: 11.5px;
  font-weight: 400;
}

.nav {
  font-family: var(--mono);
  letter-spacing: 0.02em;
  text-transform: lowercase;
  gap: clamp(16px, 2.4vw, 32px);
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  display: flex;
}

.nav a {
  color: var(--quiet);
  border-bottom: 3px solid transparent;
  padding: 4px 0;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.nav a.active {
  color: var(--ink);
  border-color: var(--spot);
}

.qn-open {
  font-family: var(--mono);
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--quiet);
  border: 2px solid var(--rule);
  cursor: pointer;
  white-space: nowrap;
  background: transparent;
  border-radius: 0;
  padding: 7px 13px;
  font-size: 13px;
  transition: color 0.2s, border-color 0.2s;
}

.qn-open:hover {
  color: var(--ink);
  border-color: var(--quiet);
}

.qn-open kbd {
  font: inherit;
  color: var(--spot);
}

@media (max-width: 640px) {
  .who span { display: none; }
  .top .wrap {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .nav {
    order: 3;
    gap: 16px;
    width: 100%;
    margin-left: 0;
  }
  .qn-open {
    margin-left: auto;
  }
}

/* Barra de progresso de leitura no topo */
.readbar {
  background: var(--spot);
  transform-origin: 0;
  width: 100%;
  height: 3px;
  position: absolute;
  bottom: -2px;
  left: 0;
  transform: scaleX(0);
}

/* ── Hero Section ── */
.hero {
  min-height: calc(100vh - var(--headh));
  min-height: calc(100svh - var(--headh));
  flex-direction: column;
  display: flex;
}

.h-main {
  flex: 1;
  align-items: center;
  padding: clamp(40px, 7vh, 88px) 0;
  display: flex;
}

.h-main .wrap {
  width: 100%;
}

.hero h1 {
  max-width: 13ch;
  font-size: clamp(38px, 8.8vw, 150px);
  line-height: 0.94;
}

.hero .h-sub {
  max-width: 48ch;
  margin-top: clamp(22px, 3.5vh, 40px);
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--body);
  line-height: 1.55;
}

.hero .h-cta {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(26px, 4vh, 44px);
  display: flex;
}

.h-foot {
  background: var(--spot);
  color: var(--spot-ink);
  padding: 13px 0;
}

.h-foot .wrap {
  font-family: var(--mono);
  letter-spacing: 0.03em;
  text-transform: lowercase;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 26px;
  font-size: 12.5px;
  display: flex;
}

.h-foot .dot {
  background: var(--spot-ink);
  vertical-align: baseline;
  width: 9px;
  height: 9px;
  margin-right: 10px;
  display: inline-block;
}

/* Credibility Ribbon */
.names {
  border-top: 2px solid var(--rule);
  padding: 18px 0;
}

.names .wrap {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 30px;
  display: flex;
}

.names p {
  font-family: var(--mono);
  letter-spacing: 0.03em;
  text-transform: lowercase;
  color: var(--quiet);
  font-size: 12.5px;
}

.names p b {
  color: var(--ink);
  font-weight: 600;
}

/* ── The Projects (Entries) ── */
.entries {
  padding: clamp(60px, 9vh, 130px) 0;
}

.sec-head {
  margin-bottom: clamp(30px, 5vh, 60px);
}

.sec-head h2 {
  font-size: clamp(38px, 6.8vw, 110px);
}

.workgrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  display: grid;
}

.workgrid:has(> :last-child:first-child) {
  grid-template-columns: minmax(0, 1fr);
}

.workgrid:has(> :last-child:nth-child(2)) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .workgrid {
    grid-template-columns: 1fr !important;
  }
}

.proj {
  border-top: 2px solid var(--rule);
  flex-direction: column;
  min-width: 0;
  padding-top: clamp(20px, 2.6vw, 34px);
  display: flex;
}

.shot {
  border: 2px solid var(--rule);
  background: var(--bg2);
  transition: border-color 0.25s;
  overflow: hidden;
}

.shot img {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.proj:hover .shot img {
  transform: scale(1.02);
}

.proj:hover .shot {
  border-color: var(--spot);
}

.shot-placeholder {
  aspect-ratio: 16/10;
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.shot-placeholder span.tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--spot);
  margin-bottom: 6px;
  text-transform: lowercase;
}

.shot-placeholder span.title {
  font-family: var(--disp);
  font-size: 18px;
  color: var(--ink);
  font-weight: 700;
}

.p-cap {
  flex-direction: column;
  flex: 1;
  margin-top: clamp(22px, 2.6vw, 36px);
  display: flex;
}

.p-cap h3 {
  font-size: clamp(26px, 2.8vw, 44px);
  line-height: 1.05;
}

.p-cap h3 a {
  transition: color 0.2s;
  text-decoration: none;
}

.p-cap h3 a:hover {
  color: var(--spot);
}

.p-right {
  max-width: 62ch;
  margin-top: clamp(16px, 2vw, 24px);
}

.p-right p {
  color: var(--body);
  font-size: 15px;
  line-height: 1.6;
}

.p-right .p-outcome {
  color: var(--ink);
  margin-top: 10px;
  font-weight: 600;
}

.p-right .alink {
  margin-top: 20px;
}

.p-side {
  border-top: 2px solid var(--rule);
  gap: 16px;
  margin-top: auto;
  padding-top: clamp(14px, 1.8vw, 22px);
  display: grid;
}

.p-cap .p-meta {
  flex-wrap: wrap;
  gap: 8px clamp(14px, 2vw, 28px);
  display: flex;
}

.p-cap .p-meta span {
  font-family: var(--mono);
  letter-spacing: 0.03em;
  text-transform: lowercase;
  color: var(--quiet);
  font-size: 11.5px;
}

.p-cap .p-meta b {
  color: var(--ink);
  font-weight: 600;
}

/* ── How I Work (Filosofia de Engenharia) ── */
.how {
  border-top: 2px solid var(--rule);
  padding: clamp(60px, 9vh, 130px) 0;
}

.how h2 {
  font-size: clamp(36px, 5.6vw, 84px);
}

.steps {
  margin-top: clamp(30px, 5vh, 56px);
}

.steps-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(30px, 5vh, 56px);
}

@media (max-width: 860px) {
  .steps-2col {
    grid-template-columns: 1fr;
  }
}

.step-card {
  border: 2px solid var(--rule);
  background: var(--bg2);
  padding: clamp(24px, 3vh, 36px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  transition: border-color 0.25s, transform 0.3s;
}

.step-card:hover {
  border-color: var(--spot);
  transform: translateY(-2px);
}

.step-card .nsq {
  align-self: flex-start;
}

.step-card b {
  font-family: var(--disp);
  color: var(--ink);
  letter-spacing: -0.02em;
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 700;
  display: block;
}

.step-card p {
  color: var(--body);
  font-size: 15px;
  line-height: 1.6;
}

/* ── O Que Faço (Serviços de Especialista WordPress) ── */
.services-section {
  border-top: 2px solid var(--rule);
  padding: clamp(60px, 9vh, 130px) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 36px);
  margin-top: clamp(30px, 5vh, 56px);
}

@media (max-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.service-card {
  border: 2px solid var(--rule);
  background: var(--bg2);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.25s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
  border-color: var(--spot);
  transform: translateY(-3px);
}

.service-card .svc-icon {
  margin-bottom: 18px;
  color: var(--spot);
}

.service-card h3 {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14.5px;
  color: var(--body);
  line-height: 1.6;
}

.service-card .svc-tags {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ── Custom Layouts para Widgets (top, side, none) ── */
.p-layout-top .shot {
  width: 100%;
  margin-bottom: 18px;
}

.p-layout-side {
  display: grid !important;
  grid-template-columns: minmax(260px, 38%) 1fr;
  gap: clamp(20px, 2.5vw, 36px);
  align-items: start;
}

@media (max-width: 800px) {
  .p-layout-side {
    grid-template-columns: 1fr !important;
  }
}

.p-layout-none .shot {
  display: none !important;
}

/* ── Botão Ver Todos ── */
.view-all-wrap {
  margin-top: clamp(36px, 5vh, 60px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.view-all-btn {
  font-family: var(--sans);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  background: var(--bg2);
  border: 2px solid var(--rule);
  text-decoration: none !important;
  transition: all 0.25s;
}

.view-all-btn:hover {
  border-color: var(--spot);
  color: var(--spot);
  background: color-mix(in srgb, var(--bg2) 80%, var(--spot) 20%);
}

.step {
  border-top: 1px solid var(--rule-soft);
  grid-template-columns: minmax(70px, 140px) 1fr;
  gap: 10px clamp(20px, 4vw, 64px);
  padding: clamp(24px, 3.6vh, 42px) 0;
  display: grid;
}

.step:last-child {
  border-bottom: 1px solid var(--rule-soft);
}

.step b {
  font-family: var(--disp);
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  display: block;
}

.step p {
  max-width: 62ch;
  color: var(--body);
}

@media (max-width: 600px) {
  .step {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ── Pullquote / Depoimento ── */
.kind {
  border-top: 2px solid var(--rule);
  padding: clamp(60px, 9vh, 130px) 0;
}

.kind blockquote {
  font-family: var(--disp);
  color: var(--ink);
  letter-spacing: -0.025em;
  border-left: 8px solid var(--spot);
  max-width: 32ch;
  padding-left: clamp(20px, 3vw, 44px);
  font-size: clamp(24px, 3.4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
}

.kind figcaption {
  font-family: var(--mono);
  letter-spacing: 0.03em;
  text-transform: lowercase;
  color: var(--quiet);
  margin-top: 26px;
  padding-left: clamp(28px, 3.6vw, 52px);
  font-size: 12.5px;
}

/* ── Tools & Stack ── */
.tools {
  border-top: 2px solid var(--rule);
  padding: clamp(48px, 7vh, 100px) 0;
}

.tools h2 {
  font-size: clamp(30px, 4.4vw, 64px);
}

.tools .t-cols {
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 80px);
  margin-top: clamp(26px, 4vh, 44px);
  display: grid;
}

@media (max-width: 720px) {
  .tools .t-cols {
    grid-template-columns: 1fr;
  }
}

.tools .t-h {
  margin-bottom: 8px;
}

.tools li {
  border-bottom: 1px solid var(--rule-soft);
  color: var(--body);
  padding: 13px 0;
  font-size: 15.5px;
}

.tools li::before {
  content: "";
  background: var(--spot);
  vertical-align: baseline;
  width: 8px;
  height: 8px;
  margin-right: 14px;
  display: inline-block;
  transform: translateY(-1px);
}

.tools li b {
  color: var(--ink);
  font-weight: 600;
}

/* ── Booking / Contact Section ── */
.booking {
  background: var(--spot);
  color: var(--spot-ink);
  padding: clamp(64px, 10vh, 140px) 0;
}

.booking .avail {
  font-family: var(--mono);
  letter-spacing: 0.03em;
  text-transform: lowercase;
  color: var(--spot-ink);
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  display: flex;
}

.booking .avail .dot {
  background: var(--spot-ink);
  flex: none;
  width: 9px;
  height: 9px;
}

.booking h2 {
  color: var(--spot-ink);
  margin-top: clamp(18px, 3vh, 30px);
  font-size: clamp(38px, 7.5vw, 120px);
}

.booking > .wrap > p:not(.avail) {
  max-width: 52ch;
  color: var(--spot-ink);
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.5;
}

.bigmail {
  font-family: var(--disp);
  letter-spacing: -0.03em;
  color: var(--spot-ink);
  border-bottom: 4px solid var(--spot-ink);
  margin-top: clamp(24px, 4vh, 40px);
  padding-bottom: 5px;
  font-size: clamp(22px, 3.8vw, 56px);
  font-weight: 700;
  transition: opacity 0.2s;
  display: inline-block;
  text-decoration: none !important;
}

.bigmail:hover {
  opacity: 0.7;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 2rem;
}

.btn-dark {
  background: var(--spot-ink);
  color: var(--spot);
  border: 2px solid var(--spot-ink);
  font-family: var(--sans);
  font-weight: 700;
  padding: 14px 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none !important;
}

.btn-dark:hover {
  background: transparent;
  color: var(--spot-ink);
}

/* ── Footer ── */
.foot {
  border-top: 2px solid var(--rule);
}

.f-top {
  border-bottom: 1px solid var(--rule-soft);
  padding: clamp(24px, 3.5vh, 36px) 0;
}

.f-top .wrap {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 26px;
  display: flex;
}

.f-top .f-mark {
  font-family: var(--disp);
  letter-spacing: -0.02em;
  color: var(--ink);
  font-size: 21px;
  font-weight: 700;
}

.f-top .f-mark::after {
  content: ".";
  color: var(--spot);
}

.f-cols {
  padding: clamp(30px, 5vh, 52px) 0;
}

.f-cols .wrap {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: clamp(26px, 4vw, 60px);
  display: flex;
}

.f-h {
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--quiet);
  margin-bottom: 14px;
  font-size: 11.5px;
}
.f-h::before { content: "["; }
.f-h::after { content: "]"; }

.f-col a {
  color: var(--ink);
  width: fit-content;
  padding: 3px 0;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s;
  display: block;
  text-decoration: none;
}

.f-col a:hover {
  color: var(--spot);
}

.colophon {
  max-width: 48ch;
}

.colophon p {
  color: var(--quiet);
  font-size: 14px;
}

.colophon p b {
  color: var(--body);
  font-weight: 500;
}

.colophon .f-note {
  margin-top: 14px;
  font-size: 12.5px;
}

.f-base {
  border-top: 1px solid var(--rule-soft);
  padding: 16px 0;
}

.f-base .wrap {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 20px;
  display: flex;
}

@media (max-width: 720px) {
  .f-cols .wrap {
    flex-direction: column;
    gap: 26px;
  }
}

/* ── Floating Color Packs Switcher ── */
.packs {
  z-index: 90;
  background: var(--bg2);
  color: var(--quiet);
  border: 2px solid var(--rule);
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-transform: lowercase;
  border-radius: 0;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 11px;
  display: flex;
  position: fixed;
  bottom: 18px;
  right: 18px;
}

.packs button {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 0;
  width: 18px;
  height: 18px;
  padding: 0;
}

.packs button[aria-pressed="true"] {
  border-color: var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 2px;
}

.packs .k1 { background: linear-gradient(135deg, #0a0b09 50%, #c8ff16 50%); }
.packs .k2 { background: linear-gradient(135deg, #0d070b 50%, #ff3ea5 50%); }
.packs .k3 { background: linear-gradient(135deg, #0c0a08 50%, #ff5a1f 50%); }
.packs .k4 { background: linear-gradient(135deg, #f1f0ea 50%, #2b3be0 50%); }

@media (max-width: 768px) {
  .packs {
    bottom: 10px;
    right: 10px;
    padding: 6px 10px;
  }
}

/* ── Command Menu Palette (⌘K) ── */
.qn {
  background: var(--bg2);
  width: min(520px, calc(100vw - 32px));
  color: var(--body);
  border: 2px solid var(--rule);
  margin: auto;
  padding: 0;
  top: 15vh;
  position: fixed;
  z-index: 100;
}

.qn::backdrop {
  backdrop-filter: blur(4px);
  background: rgba(4, 5, 4, 0.65);
}

.qn input {
  border: 0;
  border-bottom: 2px solid var(--rule);
  width: 100%;
  color: var(--ink);
  font: 500 15px var(--mono);
  letter-spacing: 0.02em;
  background: transparent;
  padding: 16px 18px;
  outline: none;
}

.qn input::placeholder {
  color: var(--quiet);
}

.qn ul {
  max-height: 320px;
  padding: 8px;
  overflow: auto;
}

.qn li a {
  color: var(--body);
  cursor: pointer;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 11px 12px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  display: flex;
}

.qn li a .k {
  font-family: var(--mono);
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--quiet);
  font-size: 11.5px;
}

.qn li.on a, .qn li a:hover {
  background: var(--spot);
  color: var(--spot-ink);
}

.qn li.on a .k, .qn li a:hover .k {
  color: var(--spot-ink);
}

.qn .qn-hint {
  border-top: 2px solid var(--rule);
  padding: 11px 18px;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--quiet);
}

/* ── Screen Reader Text ── */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* ── Section Transition Divider ── */
.sec-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule) 20%, var(--rule) 80%, transparent);
  position: relative;
  margin: 0;
}

.sec-divider::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--spot);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--spot);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
