/* ── CARDS: featured + mini grid + section rows ── */

/* SECTION ROWS */
.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  animation: fu 0.6s ease 0.4s both;
  width: 100%;
}
.section-label {
  font-size: 8px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.bio-para .section-label {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  letter-spacing: normal;
  text-transform: none;
}
.section-link {
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
  background: none;
  border: none;
  cursor: none;
  font-family: var(--mono);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
  text-decoration: none;
}
.section-link:hover { gap: 10px; }
.sl-line { width: 16px; height: 1px; background: var(--rose); transition: width 0.2s; }
.section-link:hover .sl-line { width: 24px; }

.section-heading {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(20,18,14,0.4);
  margin: 0 0 20px;
}
.theme-dark .section-heading { color: rgba(255,255,255,0.35); }

/* FEATURED CARDS */
.featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  animation: fu 1.6s ease 0.48s both;
  margin-bottom: 12px;
  width: 100%;
}
.fcard {
  border-radius: 12px;
  cursor: none;
  position: relative;
  overflow: hidden;
  height: auto;
  display: flex;
  flex-direction: column;
  transition: transform 0.38s cubic-bezier(.22,.68,0,1.12);
  background: var(--bg2);
  text-decoration: none;
  z-index: 5;
}
.fcard-wrap { position: relative; z-index: 1; transition: transform 0.5s cubic-bezier(0.25,0,0.1,1), box-shadow 0.5s ease, opacity 0.3s; }
.fcard-wrap:hover { z-index: 10; transform: translateY(-8px); box-shadow: 0 16px 48px rgba(0,0,0,0.16); }
.fcard:hover { transform: none; }
.fcard-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  flex-shrink: 0;
  margin-bottom: -38px;
}
.fcard-img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
  display: block;
}
.fcard-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 60%, rgba(var(--scrim), 0.015) 80%, rgba(var(--scrim), 0.04) 100%),
    radial-gradient(ellipse 120% 90% at 5% 110%, rgba(var(--scrim), 0.16) 0%, rgba(var(--scrim), 0.06) 34%, rgba(var(--scrim), 0.015) 58%, transparent 74%);
}
.fcard-content {
  position: relative;
  z-index: 4;
  margin-top: 0;
  padding: 36px 20px 20px;
  background:
    linear-gradient(180deg, rgba(var(--scrim), 0) 0%, rgba(var(--scrim), 0.02) 20%, rgba(var(--scrim), 0.12) 48%, rgba(var(--scrim), 0.4) 78%, rgba(var(--scrim), 0.75) 100%);
  box-shadow: none;
  flex: 1;
}
/* Blur fades in gradually from the top edge instead of cutting on hard at the seam,
   so the frosted panel blends into the image above it rather than reading as a hard band. */
.fcard-content::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  -webkit-backdrop-filter: blur(8px) saturate(1.04);
  backdrop-filter: blur(8px) saturate(1.04);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.5) 22%, #000 46%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.5) 22%, #000 46%);
}
.fcard-tag {
  font-size: 7.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--mono);
  color: rgba(255,255,255,0.76);
  margin-bottom: 7px;
}
.fcard-name {
  font-family: var(--serif);
  font-size: clamp(16px, 1.18vw, 19px);
  font-weight: 400;
  color: white;
  line-height: 1.16;
  margin-bottom: 0;
}
.fcard-name em { font-style: normal; }
/* Gradient scrim behind logo to ensure legibility */
.fcard-logo-scrim {
  position: absolute;
  top: 0; left: 0;
  width: 65%; height: 45%;
  z-index: 2;
  background: radial-gradient(ellipse at top left, rgba(var(--scrim), 0.82) 0%, transparent 72%);
  pointer-events: none;
}

/* Card logo — top-left, sits above overlay */
.fcard-logo {
  position: absolute;
  top: clamp(12px, 1.3vw, 16px);
  left: clamp(12px, 1.3vw, 16px);
  z-index: 3;
  max-height: clamp(28px, 4.5vw, 60px);
  width: auto;
  max-width: min(46%, 180px);
  object-fit: contain;
  opacity: 0.95;
  pointer-events: none;
}


@media (max-width: 980px) {
  .fcard-logo {
    max-height: clamp(22px, 5vw, 42px) !important;
    max-width: min(38%, 132px) !important;
    top: 14px !important;
    left: 14px !important;
  }
}

@media (max-width: 560px) {
  .fcard-logo {
    max-height: clamp(18px, 7vw, 34px) !important;
    max-width: min(34%, 104px) !important;
    top: 12px !important;
    left: 12px !important;
  }
}

/* Hover-reveal panel: floating notification-style pill above the card */
.fcard-top {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 14px;
  right: 14px;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: max-content;
  max-width: calc(100% - 28px);
  background: #ffffff;
  border-radius: 20px;
  padding: 12px 16px 12px 12px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.18), 0 2px 10px rgba(0,0,0,0.08);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.26s ease, transform 0.32s cubic-bezier(0.34,1.4,0.64,1);
  pointer-events: none;
  text-align: left;
}
.fcard-wrap:hover .fcard-top {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.fcard-top-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(var(--scrim), 0.92);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  overflow: hidden;
}
.fcard-top-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fcard-top-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.fcard-chips {
  display: flex;
  gap: 0;
  flex-wrap: nowrap;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.fcard-chip {
  font-size: 9.5px;
  letter-spacing: 0.02em;
  font-family: var(--mono);
  color: rgba(20,18,14,0.4);
  white-space: nowrap;
}
.fcard-chip strong {
  color: rgba(20,18,14,0.55);
  font-weight: 600;
  font-style: normal;
}
.fcard-chip + .fcard-chip::before {
  content: '·';
  margin: 0 6px;
  color: rgba(20,18,14,0.2);
}
.fcard-question {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  font-style: normal;
  color: rgba(20,18,14,0.9);
  line-height: 1.4;
}

.fcard-arrow {
  position: absolute;
  top: 13px; right: 13px;
  z-index: 3;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: white;
  opacity: 0; transform: scale(0.8);
  transition: opacity 0.25s, transform 0.25s;
}
.fcard:hover .fcard-arrow { opacity: 1; transform: scale(1); }

/* "Coming soon" state for unbuilt cards */
.fcard.soon .fcard-img { filter: saturate(0); }
.fcard.soon::before {
  content: 'Coming soon';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(14,12,10,0.82);
  color: rgba(255,255,255,0.6);
  font-size: 7.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 20px;
  border: 0.5px solid rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 4;
  pointer-events: none;
  white-space: nowrap;
}
.fcard.soon:hover::before { opacity: 1; }

/* MINI CARDS */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  animation: fu 0.6s ease 0.6s both;
  margin-bottom: 32px;
  width: 100%;
}
.mcard {
  border-radius: 10px;
  cursor: none;
  position: relative;
  overflow: hidden;
  height: 160px;
  transition: transform 0.3s, box-shadow 0.3s;
  background: var(--bg2);
  display: block;
  text-decoration: none;
}
.mcard:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(30,28,24,0.14); }
.mcard-img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
  transition: transform 0.5s;
  display: block;
}
.mcard:hover .mcard-img { transform: scale(1.06); }
.mcard-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(20,16,10,0.18) 78%, rgba(20,16,10,0.4) 100%),
    radial-gradient(ellipse 120% 90% at 5% 110%, rgba(20,16,10,0.5) 0%, rgba(20,16,10,0.22) 34%, rgba(20,16,10,0.04) 58%, transparent 74%);
}
.mcard-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 13px 11px;
  z-index: 2;
}
/* Frosted/mirror bottom, matching .fcard-content — blur fades in gradually
   from the top edge so the panel blends into the image instead of a hard seam. */
.mcard-content::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  -webkit-backdrop-filter: blur(8px) saturate(1.04);
  backdrop-filter: blur(8px) saturate(1.04);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.5) 45%, #000 75%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.5) 45%, #000 75%);
}
.mcard-tag {
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--mono);
  color: rgba(255,255,255,0.68);
  margin-bottom: 5px;
}
.mcard-name {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 200;
  color: white;
  line-height: 1.2;
}
.mcard-name em { font-style: normal; font-weight: 400; }
.mcard.warm-bg { background: linear-gradient(135deg, #a06848, #6a3c28); }
.mcard.cool-bg { background: linear-gradient(135deg, #7a8a9a, #4a5a6a); }

/* Logo + sub-label sitting at top of mcard */
.mcard-logo {
  position: absolute;
  top: 13px; left: 13px;
  height: 18px;
  width: auto;
  display: block;
  z-index: 2;
  object-fit: contain;
}
.mcard-sub {
  position: absolute;
  top: 35px; left: 13px;
  font-size: 6px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  font-family: var(--mono);
  z-index: 2;
}

.mcard-arrow {
  position: absolute;
  top: 9px; right: 9px;
  z-index: 3;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: white;
  opacity: 0; transform: scale(0.8);
  transition: opacity 0.2s, transform 0.2s;
}
.mcard:hover .mcard-arrow { opacity: 1; transform: scale(1); }

/* "Coming soon" state for mini cards */
.mcard.soon .mcard-img { filter: none; }
.mcard.soon::before {
  content: 'Coming soon';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(14,12,10,0.82);
  color: rgba(255,255,255,0.6);
  font-size: 7px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 20px;
  border: 0.5px solid rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 4;
  pointer-events: none;
  white-space: nowrap;
}
.mcard.soon:hover::before { opacity: 1; }

/* VIEW ALL */
.view-all {
  display: flex;
  justify-content: flex-end;
  animation: fu 0.6s ease 0.72s both;
}
.va-btn {
  background: none;
  border: none;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  cursor: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s;
  text-decoration: none;
}
.va-btn:hover { gap: 12px; }
.va-line { width: 18px; height: 1px; background: var(--rose); transition: width 0.2s; }
.va-btn:hover .va-line { width: 28px; }

/* ── MOBILE ── */
@media (max-width: 600px) {
  .featured { grid-template-columns: 1fr; gap: 10px; }
  .fcard { height: auto; }
  .fcard-media {
    height: auto;
    aspect-ratio: 2.6/1;
    margin-bottom: -36px;
  }
  .fcard-content {
    margin-top: 0;
    padding: 48px 16px 16px;
  }
  .fcard-name {
    font-size: 17px;
  }
  .mini-grid { grid-template-columns: 1fr 1fr; gap: 8px; }

  /* zoom out card images a tad once cards stack; accent bg fills any gap */
  .fcard-img[alt="A&F Denim Darlin'"] { transform: scale(1.12) translateX(calc(12% - 10px)) !important; }
  .fcard-img[alt="The Petal Project"] { transform: scale(1.10) translate(-8%, 0%) !important; }
  .fcard-img[alt="Amazon"] { transform: scale(1.10) translateX(-10%) !important; }
  .fcard-img[alt="Hirshhorn Museum"] { transform: scale(1.05) translateX(-4%) !important; }
  .fcard-img[alt="AI Proposal Generator"] { transform: scale(1.15) !important; }

  /* disable hover effects on touch */
  .fcard-wrap:hover { z-index: 1; transform: none; box-shadow: none; }
  .fcard-wrap:hover .fcard-top { max-height: 0; visibility: hidden; }
  .fcard:hover .fcard-arrow { opacity: 0; transform: scale(0.85); }
  .fcard.soon:hover::before { opacity: 0; }
}

@media (max-width: 600px) {
  .mcard:nth-child(n+5) { display: none; }
}
