/* ── CARD IMAGE BACKGROUNDS ── */
.card-img-1 {
  background:
    url("../images/thumbnail-workflows.png") center / 85% auto no-repeat,
    linear-gradient(145deg, #1c1510 0%, #3d2015 45%, #d4522a 100%);
}
.card-img-2 {
  background:
    url("../images/thumbnail-assistant.png") center / 85% auto no-repeat,
    linear-gradient(145deg, #2a1020 0%, #5c2035 45%, #c9637a 100%);
}
.card-img-3 {
  background:
    url("../images/thumbnail-canvas.png") center / 85% auto no-repeat,
    linear-gradient(145deg, #0f1e30 0%, #1e3d5c 45%, #3b6fa0 100%);
}

/* ── PAGE HERO ── */
.page-hero {
  min-height: 60vh; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 140px 48px 80px;
  position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; top: 50%; right: -20px;
  transform: translateY(-50%);
  font-family: var(--serif); font-size: clamp(120px, 17vw, 240px);
  color: rgba(26,20,16,0.038); white-space: nowrap;
  pointer-events: none; user-select: none;
  line-height: 1; letter-spacing: -0.02em; z-index: 0;
}
.page-hero-content { position: relative; z-index: 2; max-width: 820px; }
.page-hero-title {
  font-family: var(--serif); font-size: clamp(44px, 6.2vw, 88px);
  line-height: 1.06; font-weight: 400; margin-bottom: 28px;
}
.page-hero-title em { font-style: italic; }
.page-hero-sub {
  font-size: 15px; color: var(--muted); max-width: 480px; line-height: 1.7; font-style: italic;
}

/* ── WORK LIST — full-width horizontal card rows ── */
.work-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 0 48px;
}

.work-row {
  display: grid;
  grid-template-columns: 52% 1fr;
  border: 1px solid rgba(26,20,16,0.1);
  text-decoration: none;
  color: inherit;
  transition: background 0.3s;
  cursor: none;
}
.work-row:hover { background: var(--light); }

.work-row-img {
  height: 400px;
  position: relative;
  overflow: hidden;
}
.work-row-img::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.work-row-img-caption {
  position: absolute; bottom: 18px; left: 22px;
  font-family: var(--serif); font-size: 12px; font-style: italic;
  color: rgba(255,255,255,0.45);
}

.work-row-body {
  padding: 48px 64px;
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
}

.work-row-pills { display: flex; flex-wrap: wrap; gap: 6px; }

.work-row-title {
  font-family: var(--serif); font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 400; line-height: 1.1;
}
.work-row-subtitle {
  font-size: 13px; font-style: italic; color: var(--muted);
}
.work-row-desc {
  font-size: 14px; color: var(--muted); line-height: 1.72; max-width: 480px;
}

.work-row-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
  font-family: var(--sans); font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  transition: color 0.22s, gap 0.22s;
}
.work-row:hover .work-row-cta { color: var(--terracota); gap: 14px; }

/* ── OTHER PROJECTS ── */
.other-projects-section {
  padding: 80px 48px 100px;
  border-top: 1px solid rgba(26,20,16,0.1);
}
.other-projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.other-project-tile {
  padding: 28px 24px;
  border-radius: 16px;
  border: 1px solid rgba(26,20,16,0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.25s, background 0.25s;
  cursor: none;
}
.other-project-tile:hover {
  border-color: rgba(26,20,16,0.25);
  background: var(--light);
}
.other-project-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
}
.other-project-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .work-row { grid-template-columns: 1fr; }
  .work-row-img { height: 240px; }
  .work-row-body { padding: 32px 28px; }
  .other-projects-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .other-projects-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .page-hero { padding:100px 20px 60px; min-height:auto; }
  .page-hero-bg { display:none; }
}
