/* ==========================================================================
   RYUK* — project.css
   Case study page styles — extends style.css tokens
   ========================================================================== */

/* ─── PROJECT HERO ───────────────────────────────────────────────────── */
.proj-hero {
  min-height: 65svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 0 clamp(60px, 10vh, 100px);
  background: var(--bg);
}
.proj-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.proj-meta-top {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.proj-meta-top .section-tag {
  font-family: "Clash Display", sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.6) !important;
}
.proj-meta-top .section-tag-divider {
  font-family: "Clash Display", sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--accent) !important;
}

.proj-title {
  font-family: "Clash Display", sans-serif;
  font-size: clamp(2.5rem, 8vw, 7.5rem);
  line-height: 0.78;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
  display: block;
  will-change: transform;
  font-weight: 600;
  text-align: center;
}

.proj-tagline {
  font-family: "Inter", sans-serif;
  font-size: 20px;
  line-height: 1.3;
  color: #808080;
  max-width: 680px;
  margin-top: 32px;
  font-weight: 500;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ─── COVER ──────────────────────────────────────────────────────────── */
.proj-cover {
  position: relative;
  height: clamp(320px, 65vh, 740px);
  overflow: hidden;
  background: var(--bg-3);
}
.proj-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  will-change: transform;
}
.proj-cover-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, var(--bg) 100%);
}

/* ─── INFO ───────────────────────────────────────────────────────────── */
.proj-info-section {
  padding: clamp(60px, 8vh, 100px) 0 0;
  background: var(--bg);
}
.proj-info-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ─── GALLERY ────────────────────────────────────────────────────────── */
.proj-gallery {
  background: var(--bg);
  padding: 0 0 clamp(60px, 10vh, 120px);
}
.proj-gallery-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 20px);
}

.proj-gallery-row {
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-3);
}
.proj-gallery-row--full {
  width: 100%;
}
.proj-gallery-row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2vw, 20px);
}
.proj-gallery-row--half .proj-gallery-row {
  border-radius: 8px;
}

.proj-gallery-img {
  width: 100%;
  height: clamp(240px, 45vw, 560px);
  object-fit: cover;
  transition: transform 0.8s var(--ease);
  display: block;
}
.proj-gallery-row--half .proj-gallery-img {
  height: clamp(180px, 28vw, 400px);
}
.proj-gallery-row:hover .proj-gallery-img {
  transform: scale(1.03);
}

/* ─── NEXT PROJECT ───────────────────────────────────────────────────── */
.proj-next {
  background: var(--bg);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.proj-next-inner {
  display: block;
  padding: clamp(60px, 10vh, 120px) var(--pad);
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  transition: opacity 0.3s;
}
.proj-next-inner:hover {
  opacity: 0.85;
}

.pn-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  margin-bottom: 16px;
}

.pn-title {
  font-family: var(--font-title);
  font-size: clamp(4rem, 14vw, 16rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 0.88;
  display: block;
  will-change: transform;
}

.pn-arrow {
  position: absolute;
  right: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(2rem, 5vw, 5rem);
  color: var(--accent);
  transition: transform 0.4s var(--ease);
}
.proj-next-inner:hover .pn-arrow {
  transform: translateY(-50%) translateX(12px);
}

/* ─── NAV BACK ARROW ─────────────────────────────────────────────────── */
.nav-back-arrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .proj-info-inner {
    grid-template-columns: 1fr;
  }
  .proj-gallery-row--half {
    grid-template-columns: 1fr;
  }
  .pn-arrow {
    display: none;
  }
}

.proj-live-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Clash Display", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #000000;
  background: #ffffff;
  padding: 14px 32px;
  border-radius: 100px;
  transition: all 0.35s cubic-bezier(0.76, 0, 0.24, 1);
  text-decoration: none;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.proj-live-btn:hover {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}
.proj-live-btn svg {
  transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}
.proj-live-btn:hover svg {
  transform: translate(2px, -2px);
}

.proj-live-preview-section {
  margin-top: 36px;
}
.proj-live-preview-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  text-transform: uppercase;
  color: var(--text);
  font-weight: 600;
  transition: color 0.35s var(--ease);
}
.proj-live-preview-link:hover {
  color: var(--accent);
}
.preview-circle {
  width: clamp(48px, 6vw, 64px);
  height: clamp(48px, 6vw, 64px);
  border-radius: 50%;
  border: 1px solid var(--text-dimmer);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease);
  color: var(--text);
}
.proj-live-preview-link:hover .preview-circle {
  border-color: var(--accent);
  background-color: var(--accent);
  color: var(--white);
  transform: rotate(-45deg);
}

/* ─── METADATA GRID ─────────────────────────────────────────────────── */
.proj-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 40px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 48px 0;
  margin: 0;
}
.pm-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pm-label {
  font-family: "Clash Display", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.pm-val {
  font-family: "Clash Display", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text);
}

/* ─── PROCESS GRID ──────────────────────────────────────────────────── */
.proj-process-section {
  padding: clamp(60px, 8vh, 100px) 0 clamp(80px, 10vh, 120px);
  background: var(--bg);
}
.proj-process-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.proj-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
.process-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pc-num {
  font-family: "Clash Display", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pc-title {
  font-family: "Clash Display", sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.1;
  font-weight: 600;
}
.pc-desc {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  line-height: 1.3;
  color: #808080;
  font-weight: 500;
}

/* ─── FAQ SECTION ───────────────────────────────────────────────────── */
.proj-faq-section {
  padding: clamp(80px, 12vh, 160px) 0;
  background: var(--bg);
}
.proj-faq-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(40px, 6vw, 100px);
}
.faq-left {
  position: sticky;
  top: 120px;
}
.faq-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  margin-bottom: 16px;
  display: block;
}
.faq-title {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.05;
}
.faq-right {
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: clamp(20px, 3vw, 32px) 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.faq-item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.faq-question-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-question {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 600;
  color: var(--text);
  transition: color 0.3s;
}
.faq-item:hover .faq-question {
  color: var(--accent);
}
.faq-icon {
  width: 20px;
  height: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--text);
  width: 14px;
  height: 2px;
}
.faq-icon::after {
  width: 2px;
  height: 14px;
}
.faq-item.active .faq-icon::after {
  transform: rotate(90deg);
  background: var(--accent);
}
.faq-item.active .faq-icon::before {
  background: var(--accent);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.4s var(--ease),
    opacity 0.3s var(--ease),
    padding-top 0.4s var(--ease);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-dim);
  padding-right: 40px;
}
.faq-item.active .faq-answer {
  max-height: 200px;
  opacity: 1;
  padding-top: 16px;
}

/* ─── RESPONSIVE FOR NEW GRIDS ───────────────────────────────────────── */
@media (max-width: 900px) {
  .proj-meta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .proj-process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .proj-faq-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .faq-left {
    position: static;
  }
}
@media (max-width: 500px) {
  .proj-meta-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .proj-process-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ─── NAV BACK ARROW ─────────────────────────────────────────────────── */
.nav-back-arrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .proj-gallery-row--half {
    grid-template-columns: 1fr;
  }
  .pn-arrow {
    display: none;
  }
}

.proj-live-btn-wrap {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Live Button Style is defined in the primary section above */

.proj-live-preview-section {
  margin-top: 36px;
}
.proj-live-preview-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  text-transform: uppercase;
  color: var(--text);
  font-weight: 600;
  transition: color 0.35s var(--ease);
}
.proj-live-preview-link:hover {
  color: var(--accent);
}
.preview-circle {
  width: clamp(48px, 6vw, 64px);
  height: clamp(48px, 6vw, 64px);
  border-radius: 50%;
  border: 1px solid var(--text-dimmer);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease);
  color: var(--text);
}
.proj-live-preview-link:hover .preview-circle {
  border-color: var(--accent);
  background-color: var(--accent);
  color: var(--white);
  transform: rotate(-45deg);
}

/* ─── VIEW LIVE CTA SECTION ─────────────────────────────────────────── */
.proj-live-cta-section {
  background: #0a0a0a; /* Deep dark background */
  color: var(--white);
  padding: clamp(100px, 15vh, 160px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}

/* Bright ambient orange radial glow */
.proj-live-cta-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 51, 0, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.proj-live-cta-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(40px, 6vw, 100px);
  position: relative;
  z-index: 2;
}

.proj-live-cta-content {
  max-width: 700px;
}

.proj-live-cta-tag {
  font-family: "Clash Display", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 24px;
  display: block;
  text-transform: uppercase;
}

.proj-live-cta-heading {
  font-family: "Clash Display", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--white);
  letter-spacing: -0.02em;
  font-weight: 600;
}

.proj-live-cta-text {
  font-family: "Inter", sans-serif;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
}

.proj-live-cta-btn-wrap {
  flex-shrink: 0;
}

.proj-live-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-decoration: none;
  background: var(--white);
  color: var(--black);
  padding: 18px 40px;
  border-radius: 100px;
  font-family: "Clash Display", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.4s var(--ease);
  border: 1px solid var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
}

.proj-live-cta-link:hover {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 51, 0, 0.2);
}

.proj-live-cta-link .btn-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease);
}

.proj-live-cta-link:hover .btn-arrow {
  transform: translate(4px, -4px);
}

@media (max-width: 900px) {
  .proj-live-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 36px;
  }
  .proj-live-cta-btn-wrap {
    width: 100%;
  }
  .proj-live-cta-link {
    width: 100%;
  }
}

/* Disable old curtain completely */
.curtain {
  display: none !important;
}
