/* "Working Draft" — home.html's own identity. Scoped to this page only
   (linked from home.html's <head>, not the shared header fragment), so
   none of this leaks onto the other ~14 pages that share the site nav. */

:root {
  --wd-bg: #F6F4EF;
  --wd-surface: #FFFFFF;
  --wd-ink: #1C1B1A;
  --wd-ink-secondary: #5B5750;
  --wd-ink-tertiary: #8C8579;
  --wd-accent: #B8801A;
  --wd-ink-accent: #2B3A4A;
  --wd-hairline: #E4E0D6;
  --wd-radius: 3px;
  --wd-font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wd-font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  background: var(--wd-bg);
  color: var(--wd-ink);
  font-family: var(--wd-font-body);
  min-height: 100vh;
}

.wd-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.wd-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.wd-section-header h2 {
  font-family: var(--wd-font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--wd-ink);
  margin: 0 0 0.5rem;
}

.wd-section-header p {
  color: var(--wd-ink-secondary);
  font-size: 1.05rem;
  margin: 0;
}

/* Featured Apps */

.wd-app-grid {
  display: grid;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .wd-app-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.wd-app-card {
  background: var(--wd-surface);
  border: 1px solid var(--wd-hairline);
  border-radius: var(--wd-radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.wd-app-card:hover {
  border-color: var(--wd-accent);
}

.wd-app-card-body {
  padding: 2rem 2rem 0;
}

.wd-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.wd-icon-badge--momentum {
  background: rgba(43, 95, 174, 0.12);
  color: #2B5FAE;
}

.wd-icon-badge--nounii {
  background: rgba(156, 59, 46, 0.12);
  color: #9C3B2E;
}

.wd-app-card h3 {
  font-family: var(--wd-font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.wd-app-desc {
  color: var(--wd-ink-secondary);
  line-height: 1.55;
  margin: 0 0 1.25rem;
}

.wd-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.wd-tag {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--wd-hairline);
  border-radius: var(--wd-radius);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--wd-ink-secondary);
}

.wd-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1.5rem;
  background: var(--wd-bg);
  scrollbar-width: thin;
  scrollbar-color: var(--wd-accent) transparent;
}

.wd-carousel::-webkit-scrollbar {
  height: 6px;
}

.wd-carousel::-webkit-scrollbar-track {
  background: transparent;
}

.wd-carousel::-webkit-scrollbar-thumb {
  background: var(--wd-accent);
  border-radius: 3px;
}

.wd-carousel img {
  width: 12rem;
  flex-shrink: 0;
  scroll-snap-align: start;
  border-radius: var(--wd-radius);
  border: 1px solid var(--wd-hairline);
  display: block;
  height: auto;
  object-fit: cover;
}

.wd-feature-list {
  list-style: none;
  padding: 1.5rem 2rem 0.5rem;
  margin: 0;
}

.wd-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  color: var(--wd-ink-secondary);
  line-height: 1.4;
}

.wd-feature-list .fa-check {
  color: var(--wd-accent);
  margin-top: 0.2rem;
  font-size: 0.85rem;
}

.wd-btn {
  display: block;
  margin: 0.5rem 2rem 2rem;
  text-align: center;
  padding: 0.85rem 1.5rem;
  background: var(--wd-ink-accent);
  color: #fff;
  border-radius: var(--wd-radius);
  font-family: var(--wd-font-display);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.wd-btn:hover {
  background: var(--wd-accent);
}

/* Photography */

.wd-masonry-grid {
  column-count: 1;
  column-gap: 1rem;
}

@media (min-width: 640px) {
  .wd-masonry-grid { column-count: 2; }
}

@media (min-width: 768px) {
  .wd-masonry-grid { column-count: 3; }
}

@media (min-width: 1024px) {
  .wd-masonry-grid { column-count: 4; }
}

.wd-photo-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--wd-hairline);
  border-radius: var(--wd-radius);
  background: var(--wd-surface);
  padding: 0.6rem;
  cursor: pointer;
}

.wd-photo-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.wd-photo-overlay {
  position: absolute;
  inset: 0.6rem;
  background: rgba(28, 27, 26, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.5rem;
  border-radius: 2px;
}

.wd-photo-item:hover .wd-photo-overlay {
  opacity: 1;
}

.wd-photo-overlay a {
  color: #fff;
  font-size: 0.72rem;
  text-decoration: none;
}

.wd-photo-overlay a:hover {
  text-decoration: underline;
}

/* Video panel + grid */

.wd-panel-section {
  background: var(--wd-surface);
  border: 1px solid var(--wd-hairline);
  border-radius: calc(var(--wd-radius) * 2);
  margin-bottom: 3rem;
}

.wd-video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .wd-video-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .wd-video-grid { grid-template-columns: repeat(3, 1fr); }
}

.wd-video-card {
  background: var(--wd-surface);
  border: 1px solid var(--wd-hairline);
  border-radius: var(--wd-radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.wd-video-card:hover {
  border-color: var(--wd-accent);
}

.wd-video-thumb {
  position: relative;
  overflow: hidden;
}

.wd-video-thumb img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  display: block;
}

.wd-video-play {
  position: absolute;
  inset: 0;
  background: rgba(28, 27, 26, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wd-video-play-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wd-ink-accent);
  transition: background 0.2s ease, color 0.2s ease;
}

.wd-video-card:hover .wd-video-play-circle {
  background: var(--wd-accent);
  color: #fff;
}

.wd-video-title {
  padding: 1rem;
  font-family: var(--wd-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--wd-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Video modal */

.wd-video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28, 27, 26, 0.85);
  z-index: 50;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.wd-video-modal.is-open {
  display: flex;
}

.wd-video-modal-panel {
  position: relative;
  width: 100%;
  max-width: 64rem;
  background: var(--wd-surface);
  border-radius: var(--wd-radius);
  overflow: hidden;
}

.wd-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wd-ink);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.wd-modal-close:hover {
  background: #fff;
}

.wd-video-embed {
  position: relative;
  padding-top: 56.25%;
}

.wd-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.modal-open {
  overflow: hidden;
}

/* Image lightbox (unchanged mechanics, restyled) */

.image-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28, 27, 26, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.image-lightbox.active {
  display: flex;
}

.lightbox-image {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--wd-radius);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: #fff;
  font-size: 2.4rem;
  cursor: pointer;
  z-index: 10000;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  transition: background 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Footer */

.wd-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
  text-align: center;
  color: var(--wd-ink-secondary);
}

.wd-footer p {
  margin: 0 0 1rem;
}

.wd-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 1.4rem;
}

.wd-social a {
  color: var(--wd-ink-secondary);
  transition: color 0.2s ease;
}

.wd-social a:hover {
  color: var(--wd-accent);
}
