/* ---------------------------------------
   Reset
--------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: "Circular";
  src: url("fonts/circular-book.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Circular";
  src: url("fonts/circular-medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Circular";
  src: url("fonts/circular-bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Stylebender";
  src: url("fonts/StylebenderContrastItalic.woff2") format("woff2"),
       url("fonts/StylebenderContrastItalic.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "Circular", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #fff;
  color: rgba(0, 0, 0, 0.85);
  min-height: 100vh;
}

body.internal {
  text-transform: lowercase;
}

body.internal strong {
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------------------------------------
   Hero — wild.html
--------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 0;
}

.hero-photo-wrap {
  position: relative;
  z-index: 1;
}

.hero-photo {
  display: block;
  max-height: 82vh;
  max-width: 90vw;
  width: auto;
  height: auto;
}

.hero-content {
  position: absolute;
  z-index: 2;
  top: 54%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  padding: 0 40px;
  text-align: center;
  pointer-events: none;
}

.hero-headline {
  font-family: "Circular", "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 3vw, 42px);
  line-height: 1.35;
  color: #E1D452;
  max-width: none;
  margin: 0 auto;
  white-space: nowrap;
}

.hero-curve {
  position: absolute;
  left: 0;
  top: 68%;
  width: 100%;
  height: auto;
  z-index: 3;
  overflow: visible;
  pointer-events: none;
}

.marquee-svg-text {
  font-family: "Circular", "Inter", sans-serif;
  font-weight: 500;
  font-size: 19px;
  fill: #E1D452;
  text-transform: lowercase;
}

.enter-btn {
  position: absolute;
  z-index: 2;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  color: #fff;
  border: none;
  padding: 0;
  font-family: "Stylebender", "Circular", "Inter", sans-serif;
  font-weight: 400;
  font-size: 24px;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: #fff;
  text-underline-offset: 4px;
  transition: opacity 0.15s ease;
}

.enter-btn:hover {
  opacity: 0.7;
}

.exit-btn {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 15;
  background: none;
  color: rgba(0, 0, 0, 0.85);
  border: none;
  padding: 0;
  font-family: "Stylebender", "Circular", "Inter", sans-serif;
  font-weight: 400;
  font-size: 20px;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.85);
  text-underline-offset: 4px;
  transition: opacity 0.15s ease;
}

.exit-btn:hover {
  opacity: 0.6;
}

/* ---------------------------------------
   Bottom-left block — header stacked above footer
--------------------------------------- */
.bottom-left {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 10;
}

.home-bio {
  max-width: 460px;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
}

.home-bio p + p {
  margin-top: 14px;
}

.home-bio-corner {
  margin-bottom: 24px;
}

.home-bio-top {
  display: none;
}

.site-header {
  position: fixed;
  top: 24px;
  left: 24px;
  right: 24px;
  z-index: 10;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
}

.site-header .sep {
  font-weight: 400;
}

.header-nav {
  display: inline;
}

.header-nav a,
.site-title {
  transition: opacity 0.15s ease;
}

.header-nav a:hover,
.site-title:hover {
  opacity: 0.5;
}

/* ---------------------------------------
   Feed — right-aligned column
--------------------------------------- */
.feed {
  width: 44%;
  min-width: 320px;
  margin-left: auto;
  margin-right: 24px;
  padding-top: 80px;
  padding-bottom: 100px;
}

.feed-item {
  margin-bottom: 56px;
}

.feed-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ededed;
  overflow: hidden;
}

.feed-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-caption {
  display: block;
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.65;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.feed-caption:hover {
  opacity: 0.6;
}

.feed-num {
  color: rgba(0, 0, 0, 0.4);
  margin-right: 10px;
}

.feed-name {
  font-weight: 400;
  margin-right: 10px;
}

.feed-desc {
  color: rgba(0, 0, 0, 0.4);
}

/* ---------------------------------------
   Project detail pages — fixed text column, scrolling gallery
--------------------------------------- */
.project-info-col {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  width: 34%;
  min-width: 280px;
  max-width: 440px;
  padding: 64px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.project-topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.project-close {
  font-size: 13px;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.project-close:hover {
  opacity: 0.6;
}

.project-title {
  font-family: "Circular", "Inter", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
}

.project-summary {
  margin: 40px 0;
}

.project-gallery-col {
  width: 58%;
  padding: 64px 40px 100px 40px;
}

.project-gallery {
  margin-bottom: 4px;
}

.project-gallery-image {
  display: block;
  width: 100%;
  height: auto;
}

.project-gallery-placeholder {
  aspect-ratio: 4 / 5;
  background: #ededed;
}

.project-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  margin-bottom: 4px;
}

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

.project-video.is-square {
  aspect-ratio: 1 / 1;
}

.pdf-carousel {
  position: relative;
  width: 100%;
  margin-bottom: 4px;
}

.pdf-carousel-track {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.pdf-carousel-track::-webkit-scrollbar {
  display: none;
}

.pdf-carousel-page {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  display: block;
  scroll-snap-align: start;
}

.pdf-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: rgba(0, 0, 0, 0.85);
  font-size: 15px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.pdf-carousel-btn:hover {
  opacity: 0.7;
}

.pdf-carousel-prev {
  left: 12px;
}

.pdf-carousel-next {
  right: 12px;
}

.pdf-carousel-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 1;
  padding: 3px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 11.5px;
}

.project-meta-label {
  font-size: 13px;
  margin-bottom: 16px;
}

.project-summary-body p {
  font-size: 13.5px;
  line-height: 1.7;
}

.project-summary-body p + p {
  margin-top: 16px;
}

.project-summary-body ul {
  list-style: disc;
  padding-left: 1.2em;
  margin-top: 12px;
}

.project-summary-body li + li {
  margin-top: 8px;
}

.project-subhead {
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.04em;
  margin: 28px 0 8px;
}

.project-subhead:first-child {
  margin-top: 0;
}

.project-credit {
  font-size: 13px;
  font-style: italic;
  color: rgba(0, 0, 0, 0.4);
  margin-top: 20px;
}

.project-steps {
  margin-top: 12px;
}

.project-steps li {
  display: flex;
  gap: 12px;
  font-size: 13.5px;
}

.project-steps li + li {
  margin-top: 8px;
}

.project-steps .step-num {
  color: rgba(0, 0, 0, 0.4);
}

.project-footer-nav {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.4);
}

.project-return {
  transition: opacity 0.15s ease;
}

.project-return:hover {
  opacity: 0.6;
}

/* ---------------------------------------
   Footer
--------------------------------------- */
.site-footer {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.4);
}

/* ---------------------------------------
   Information overlay
--------------------------------------- */
.info-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  padding: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.info-overlay.open {
  display: block;
}

.info-close {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1;
  font-size: 16px;
  font-weight: 400;
}

.info-close:hover {
  opacity: 0.5;
}

.info-content {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  max-width: 920px;
  margin-top: 80px;
  font-size: 14.5px;
  line-height: 1.65;
}

.info-bio {
  flex: 2;
  min-width: 280px;
}

.info-bio p + p {
  margin-top: 12px;
}

.info-resume {
  flex: 1.6;
  min-width: 280px;
}

.info-subhead {
  margin-top: 28px;
  margin-bottom: 8px;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.85);
}

.info-bio .info-subhead:first-of-type,
.info-resume .info-subhead {
  margin-top: 0;
}

.info-list {
  list-style: disc;
  padding-left: 1.1em;
  margin-bottom: 8px;
}

.info-list li + li {
  margin-top: 4px;
}

.resume-item + .resume-item {
  margin-top: 16px;
}

.resume-role {
  font-weight: 400;
}

.resume-date {
  font-weight: 400;
  color: rgba(0, 0, 0, 0.4);
}

.resume-detail {
  margin-top: 2px;
  color: rgba(0, 0, 0, 0.6);
}

.email-center {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.email-address {
  font-size: 22px;
  font-weight: 500;
}

/* ---------------------------------------
   Responsive
--------------------------------------- */
@media (max-width: 720px) {
  .site-header {
    font-size: 14px;
  }

  .feed {
    width: 100%;
    margin-right: 0;
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 140px;
  }

  .home-bio-corner {
    display: none;
  }

  .home-bio-top {
    display: block;
    padding: 140px 24px 0;
    font-size: 18px;
  }

  .home-bio-top + .feed {
    padding-top: 32px;
  }

  body:has(> .project-gallery-col) {
    display: flex;
    flex-direction: column;
  }

  .project-info-col {
    position: static;
    order: 1;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 60px 24px 32px;
    overflow: visible;
  }

  .project-gallery-col {
    order: 2;
    width: 100%;
    padding: 0 24px 60px;
  }

  .hero {
    padding: 64px 0;
  }

  .hero-headline {
    font-size: 20px;
    max-width: 320px;
    white-space: normal;
  }

  .marquee-svg-text {
    font-size: 32px;
  }

  .info-content {
    margin-top: 72px;
    gap: 32px;
    padding-bottom: 60px;
  }
}

@media (max-width: 480px) {
  .marquee-svg-text {
    font-size: 50px;
  }
}
