/* scenes.css: Layout and styling for each of the nine homepage scenes */

/* --- Shared scene structure --- */
.scene {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scene__content {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Canvas sits behind content via data-canvas-variant attribute.
   Canvas CSS is loaded from /static/yvoke/css/canvas.css */

/* --- Scene 1: Hero --- */
.scene--hero {
  text-align: center;
  padding: var(--side-pad);
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 14vw, 15vw);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 0.1em;
}

.hero__subline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 400;
  color: var(--accent-copper);
  margin-top: 1.5rem;
  letter-spacing: 0.02em;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--accent-copper));
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* --- Scene 2, 4, 7: Quote Interludes --- */
.scene--quote {
  text-align: center;
  padding: var(--side-pad);
}

.quote__text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 3.2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-primary);
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.35;
}

.quote__attribution {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--accent-copper);
  margin-top: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- Scene 3: Selected Work --- */
.scene--work {
  min-height: auto;
  padding: 8rem var(--side-pad);
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.work__card {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease;
  color: inherit;
  text-decoration: none;
}

.work__card:hover {
  transform: scale(1.02);
  border-color: var(--accent-copper);
}

.work__card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.work__card:hover .work__card-image {
  opacity: 0.9;
}

.work__card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, transparent 100%);
}

.work__card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.work__card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- Scene 5: Ideas & Writing --- */
.scene--ideas {
  min-height: auto;
  padding: 8rem var(--side-pad);
}

.ideas__list {
  margin-top: 3rem;
  list-style: none;
}

.ideas__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease;
}

.ideas__item:hover {
  border-color: var(--accent-copper);
}

.ideas__item:first-child {
  border-top: 1px solid var(--border-subtle);
}

.ideas__item-left {
  flex: 1;
  min-width: 0;
}

.ideas__item-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
}

a.ideas__item-title:hover {
  color: var(--accent-copper);
}

.ideas__item-summary {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.ideas__item-tag {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-copper);
  white-space: nowrap;
  margin-left: 2rem;
}

/* --- Scene 6: Gallery --- */
.scene--gallery {
  min-height: auto;
  padding: 8rem var(--side-pad);
}

.gallery__grid {
  margin-top: 3rem;
  columns: 3;
  column-gap: 1rem;
}

.gallery__item {
  break-inside: avoid;
  margin-bottom: 1rem;
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}

.gallery__item img {
  width: 100%;
  display: block;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery__item:hover img {
  opacity: 1;
  transform: scale(1.02);
}

/* --- Scene 8: Speaking & Advisory --- */
.scene--engage {
  min-height: auto;
  padding: 8rem var(--side-pad);
}

.engage__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  margin-top: 3rem;
}

.engage__column h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.engage__topics {
  list-style: none;
  margin: 1.5rem 0;
}

.engage__topics li {
  padding: 0.4rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.engage__topics li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 1px;
  background: var(--accent-copper);
  margin-right: 0.75rem;
  vertical-align: middle;
}

.engage__cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  border: 1px solid var(--accent-copper);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.engage__cta:hover {
  background: var(--accent-copper);
  color: var(--bg-primary);
}

/* --- Scene 9: About + Footer --- */
.scene--about {
  min-height: auto;
  padding: 8rem var(--side-pad) 4rem;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.about__portrait {
  width: 100%;
  border-radius: 4px;
  opacity: 0.9;
}

.about__bio {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.about__bio p {
  margin-bottom: 1.2em;
}

.about__links {
  margin-top: 2rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.about__links a {
  font-size: 0.875rem;
  color: var(--accent-copper);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.about__links a:hover {
  color: var(--accent-warm);
}

.site-footer {
  padding: 2rem var(--side-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.5;
  border-top: 1px solid var(--border-subtle);
}

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem var(--side-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  transition: background 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.site-nav--visible {
  opacity: 1;
  pointer-events: auto;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-nav__name {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-primary);
}

.site-nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.site-nav__links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}

.site-nav__links a:hover,
.site-nav__links a.active {
  color: var(--text-primary);
}

/* --- Responsive --- */
@media (max-width: 1199px) {
  .work__grid { gap: 1rem; }
  .gallery__grid { columns: 2; }
}

@media (max-width: 768px) {
  .hero__name { font-size: max(2.5rem, 10vw); }

  .work__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .engage__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .gallery__grid { columns: 1; }

  .site-nav__links { gap: 1rem; }

  .quote__text { font-size: max(1.3rem, 5vw); }
}

/* Dark background enforcement (canvas removed, pure CSS backgrounds) */
[data-canvas-variant] {
  background-color: var(--bg-primary);
}
.scene--work,
.scene--ideas,
.scene--gallery,
.scene--engage {
  background-color: var(--bg-elevated);
}
