/* About Page Styles */

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

html {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

body {
  background: #050608;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

.marquee-container {
  display: flex;
  flex-direction: column;
  height: 80vh;
  width: 100%;
  max-width: 100%;
  margin-top: 7rem;
  flex: 0 0 auto;
  gap: 1rem;
  overflow: hidden;
  contain: layout;
  position: relative;
}

.marquee {
  position: relative;
  height: calc((80vh - 4rem) / 3);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  contain: layout;
  isolation: isolate;
}

.marquee-track {
  display: flex;
  height: 100%;
  width: fit-content;
  min-width: 200vw;
  max-width: 400vw;
  will-change: transform;
  white-space: nowrap;
  position: absolute;
  left: 0;
  top: 0;
  right: auto;
  contain: layout style;
}

.marquee img {
  height: 100%;
  width: auto;
  max-width: 100vw;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  opacity: 0.5;
  filter: saturate(1);
}

.marquee-1 .marquee-track {
  animation: scroll-left 180s linear infinite;
}

.marquee-2 .marquee-track {
  animation: scroll-right 180s linear infinite;
}

.marquee-3 .marquee-track {
  animation: scroll-left 180s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scroll-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.marquee-section-header {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  font-family: "Hiragino Mincho Pro", serif;
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.marquee-caption {
  padding: clamp(2rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
  max-width: 900px;
  margin: 0 auto;
  font-family: "IBM Plex Sans JP", system-ui, sans-serif;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

.marquee-caption p {
  margin: 0 0 1.2rem 0;
  text-align: left;
}

.marquee-caption p:last-child {
  margin-bottom: 0;
}

.marquee-caption .highlight-words {
  display: inline-block;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 500;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 127, 102, 0.6), 0 0 20px rgba(255, 127, 102, 0.4), 0 0 30px rgba(255, 127, 102, 0.2);
}

.site-footer {
  margin-top: auto;
}

/* =========================
   Side Navigation
   ========================= */
.side-nav {
  position: fixed;
  top: 7.5rem;
  left: clamp(5rem, 10vw, 8rem);
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  align-items: flex-end;
  text-align: right;
  background: transparent;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.side-nav.visible {
  opacity: 1;
  visibility: visible;
}

.side-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  position: relative;
  width: 100%;
}

.side-nav li {
  position: relative;
  text-align: right;
}

.side-nav a {
  font-family: "IBM Plex Sans JP", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #6c6c6e;
  position: relative;
  transition: color 0.3s ease;
  display: inline-block;
  padding-bottom: 6px;
}

.side-nav a:hover {
  color: #b8b9bd;
}

.side-nav a.active {
  color: #9e9fa4;
}

.side-nav a.active:hover {
  color: #c0c1c1;
}

.side-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: transparent;
  transition: background-color 0.3s ease, width 0.3s ease;
}

.side-nav a:hover::after {
  background-color: rgba(255, 127, 102, 0.4);
}

.side-nav a.active::after {
  background-color: #ff7f66;
}

/* =========================
   About Content Layout
   ========================= */
.about-content {
  padding: clamp(3rem, 6vw, 5rem) clamp(5rem, 10vw, 8rem);
  max-width: 2000px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-section {
  display: grid;
  grid-template-columns: 200px 100px 1fr;
  align-items: start;
  justify-content: start;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  overflow: visible;
  width: 100%;
}

.about-section__content {
  grid-column: 3;
  max-width: 900px;
  margin-left: 0;
  padding-left: 0;
  justify-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.75rem, 1.2vw, 1rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
}

.about-section__content h2 {
  margin: 0.25rem 0 0.5rem;
  font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 1.8vw, 2rem);
  letter-spacing: 0.005em;
  color: #fff;
}

.about-section__content p {
  font-size: 0.95rem;
  color: #e7e7e7;
}

.voice-images-row {
  display: flex;
  gap: 1rem;
  width: 100%;
  margin: clamp(1rem, 2vw, 1.5rem) 0;
  flex-wrap: wrap;
}

.voice-images-row img {
  flex: 1;
  min-width: 200px;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}

.doechii-images-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  width: 100%;
  margin: clamp(1rem, 2vw, 1.5rem) 0;
}

.doechii-images-grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  aspect-ratio: 1;
}

/* =========================
   Art Gallery
   ========================= */
.art-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  width: 100%;
  margin-top: clamp(1rem, 2vw, 1.5rem);
  grid-auto-rows: 1fr;
}

.art-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.art-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(255, 127, 102, 0.4), 
              0 0 40px rgba(255, 127, 102, 0.3),
              0 8px 24px rgba(0, 0, 0, 0.4);
}

.art-image-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 6, 8, 0.5);
  height: 280px;
  overflow: hidden;
}

.art-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.art-item:hover img {
  transform: scale(1.02);
  filter: drop-shadow(0 0 15px rgba(255, 127, 102, 0.5));
}

.art-info {
  padding: clamp(0.75rem, 1.5vw, 1rem);
  background: rgba(5, 6, 8, 0.85);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.art-title {
  font-family: "IBM Plex Sans JP", system-ui, sans-serif;
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.4rem 0;
  line-height: 1.4;
}

.art-details {
  font-family: "IBM Plex Sans JP", system-ui, sans-serif;
  font-size: clamp(0.75rem, 1vw, 0.85rem);
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.5;
}

/* =========================
   View Designs Button
   ========================= */
.overview-button-wrapper {
  display: flex;
  justify-content: flex-start;
  margin-top: 2rem;
}

.view-designs-btn {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(192, 193, 193, 0.08);
  color: #c0c1c1;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: "IBM Plex Sans JP", system-ui, sans-serif;
  cursor: pointer;
  transition: color 220ms ease, border-color 220ms ease,
    box-shadow 280ms ease, transform 220ms ease;
  overflow: hidden;
}

.view-designs-btn:hover,
.view-designs-btn:focus-visible {
  border-color: #ff7f66;
  color: #ff7f66;
  box-shadow: 0 0 0 1px rgba(255, 127, 102, 0.55),
    0 12px 24px rgba(255, 127, 102, 0.28);
}

.view-designs-btn:focus-visible {
  outline: 2px solid #ff7f66;
  outline-offset: 2px;
}

.view-designs-btn:active {
  transform: translateY(1px);
}

.view-designs-btn::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(
    105% 140% at 50% 0%,
    rgba(255, 127, 102, 0.28) 0%,
    rgba(255, 127, 102, 0.08) 55%,
    transparent 80%
  );
  opacity: 0;
  transform: translateY(18%);
  transition: opacity 260ms ease, transform 260ms ease;
  z-index: -1;
}

.view-designs-btn:hover::after,
.view-designs-btn:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Art Modal
   ========================= */
.art-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.art-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.art-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 6, 8, 0.95);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.art-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  padding: 2rem;
}

.art-modal-image {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(255, 127, 102, 0.3),
              0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.art-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(5, 6, 8, 0.8);
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
  padding: 0;
}

.art-modal-close:hover {
  background: rgba(255, 127, 102, 0.9);
  border-color: rgba(255, 127, 102, 1);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 127, 102, 0.5);
}

.art-modal-close svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

/* =========================
   Hobbies Grid
   ========================= */
.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  width: 100%;
  margin-top: clamp(1rem, 2vw, 1.5rem);
}

.hobby-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.hobby-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  aspect-ratio: 1;
}

.hobby-label {
  font-family: "IBM Plex Sans JP", system-ui, sans-serif;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  text-align: center;
}

.hobby-label strong {
  font-weight: 600;
}

/* =========================
   Subsection Headings
   ========================= */
.about-section__content .subsection-heading {
  margin-top: clamp(6rem, 10vw, 8rem) !important;
  margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
  margin-left: 0;
  margin-right: 0;
  font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1rem, 1.6vw, 1.75rem);
  letter-spacing: 0.005em;
  color: #fff;
}

/* =========================
   Salmon Grid
   ========================= */
.salmon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  width: 100%;
  margin-top: clamp(1rem, 2vw, 1.5rem);
}

.salmon-grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  aspect-ratio: 1;
}

/* =========================
   Building Website Grid
   ========================= */
.building-website-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  width: 100%;
  margin-top: clamp(1rem, 2vw, 1.5rem);
}

.building-column {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.building-column img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}

/* Medium screens - 2 columns */
@media (max-width: 1200px) and (min-width: 961px) {
  .art-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .hobbies-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .salmon-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .building-website-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Hide navigation on smaller screens */
@media (max-width: 960px) {
  .side-nav {
    display: none;
  }

  .about-content {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: clamp(1.25rem, 3.5vw, 2.5rem);
  }

  .about-section__content {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  .art-gallery {
    grid-template-columns: 1fr;
    gap: clamp(1.25rem, 3vw, 2rem);
  }

  .art-image-wrapper {
    height: 240px;
  }

  .doechii-images-grid {
    width: 100%;
    gap: 0.4rem;
  }

  .hobbies-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1rem, 2vw, 1.25rem);
  }

  .salmon-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(0.75rem, 1.5vw, 1rem);
  }

  .building-website-grid {
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2vw, 1.25rem);
  }

  .art-modal-content {
    padding: 1rem;
  }

  .art-modal-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }

  .art-modal-close svg {
    width: 16px;
    height: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}
