/* ==========================================================================
   supportswhat.com — /work/ portfolio pages
   Extends main.css. Same tokens, same discipline: amber only, no cool hues,
   no gradients, no glows. Load AFTER main.css.
   ========================================================================== */

/* ---------- Page hero (typographic — no media) ---------- */
.work-hero {
  padding-top: clamp(140px, 20vh, 200px);
  padding-bottom: 24px;
}
.work-hero .crumb {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--text-lo);
  text-decoration: none;
  margin-bottom: 28px;
}
.work-hero .crumb:hover { color: var(--text-mid); }
.work-hero h1 {
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: 1.1;
  margin-top: 16px;
  max-width: 820px;
}
.work-hero .work-sub {
  margin-top: 20px;
  font-size: 17px;
  color: var(--text-mid);
  max-width: 620px;
}
.work-hero .hero-ctas { margin-top: 32px; }

/* Meta chips (stack, scope) */
.chip-row {
  list-style: none;
  padding: 0;
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip-row li {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 7px 13px;
  font-size: 13px;
  color: var(--text-mid);
}

/* ---------- Stat strip ---------- */
.stat-strip {
  border-block: 1px solid var(--line);
  margin-top: 56px;
}
.stat-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-block: 36px;
}
@media (max-width: 899px) {
  .stat-strip .container { grid-template-columns: repeat(2, 1fr); }
}
.stat b {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  color: var(--text-hi);
}
.stat b em { font-style: italic; color: var(--amber); }
.stat span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-lo);
}

/* ---------- Section headings ---------- */
.work-section h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.15;
  max-width: 640px;
}
.work-section .section-sub {
  margin-top: 12px;
  max-width: 620px;
}

/* ---------- Feature grid (amber hairline tops, like services) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
  margin-top: 48px;
}
@media (max-width: 899px) {
  .feature-grid { grid-template-columns: 1fr; gap: 36px; }
}
.feature {
  border-top: 1px solid var(--line-amber);
  padding-top: 16px;
}
.feature h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.3;
  color: var(--text-hi);
}
.feature p { margin-top: 8px; font-size: 15px; }

/* Two-up variant for meatier features */
.feature-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 899px) {
  .feature-grid.cols-2 { grid-template-columns: 1fr; }
}

/* ---------- Numbered flow (like how-steps, tighter) ---------- */
.flow {
  list-style: none;
  padding: 0;
  margin-top: 48px;
  display: grid;
  gap: 0;
}
.flow li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
}
.flow li:last-child { border-bottom: 1px solid var(--line); }
.flow .flow-num {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--amber-soft);
  line-height: 1.2;
}
.flow h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  color: var(--text-hi);
  line-height: 1.3;
}
.flow p { margin-top: 6px; font-size: 15px; }

/* ---------- Case meta (dl) ---------- */
.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
  margin-top: 48px;
  border-top: 1px solid var(--line-amber);
  padding-top: 20px;
}
@media (max-width: 899px) {
  .case-meta { grid-template-columns: repeat(2, 1fr); }
}
.case-meta dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--amber);
}
.case-meta dd {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.5;
}

/* ---------- Callout (privacy / honesty panels) ---------- */
.callout {
  margin-top: 48px;
  border-left: 2px solid var(--amber);
  background: var(--bg-1);
  border-radius: 0 6px 6px 0;
  padding: 26px 30px;
  max-width: 760px;
}
.callout h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  color: var(--text-hi);
}
.callout p { margin-top: 10px; font-size: 15px; }
.callout p + p { margin-top: 8px; }

/* ---------- Workflow node strip ---------- */
.nodes {
  list-style: none;
  padding: 0;
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.nodes li {
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-mid);
}
.nodes li.hot { border-color: var(--line-amber); color: var(--amber-soft); }
.nodes .link {
  color: var(--text-lo);
  font-family: var(--serif);
  font-size: 18px;
}

/* ---------- Screenshots & artwork ---------- */
.shot { margin: 48px 0 0; }
.shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

/* Browser-style frame around product screenshots */
.shot .frame {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-1);
}
.shot .frame img { border: 0; border-radius: 0; }
.shot .chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.shot .chrome i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
}
.shot .chrome span {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-lo);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shot figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-lo);
}
.shot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 48px;
}
@media (max-width: 899px) {
  .shot-grid { grid-template-columns: 1fr; }
}
.shot-grid .shot { margin-top: 0; }

.art { margin: 56px 0 0; }
.art img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.art figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-lo);
}

/* ---------- Work index cards ---------- */
.work-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 56px;
}
@media (max-width: 899px) {
  .work-cards { grid-template-columns: 1fr; }
}
.work-card {
  display: block;
  text-decoration: none;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px 32px 34px;
  transition: border-color 200ms ease-out, transform 200ms ease-out;
}
.work-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 24px;
}
.work-card img.top { object-position: top; }
.work-card:hover {
  border-color: var(--line-amber);
  transform: translateY(-2px);
}
.work-card .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--amber);
}
.work-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.2;
  color: var(--text-hi);
  margin-top: 14px;
}
.work-card .card-lede {
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-mid);
}
.work-card .card-stat {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-lo);
}
.work-card .card-go {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--amber-soft);
}
.work-card:hover .card-go { color: var(--amber); }

/* ---------- Bottom CTA ---------- */
.work-cta {
  border-top: 1px solid var(--line);
  margin-top: calc(var(--section-gap) / 2);
  padding-block: calc(var(--section-gap) * 0.75);
  text-align: center;
}
.work-cta h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}
.work-cta p {
  margin-top: 14px;
  font-size: 17px;
  color: var(--text-mid);
}
.work-cta .btn { margin-top: 28px; }
