/* ==========================================================================
   Kyanic Home — Exact Anthropic Type Scale + 90s Film + Compact Works + v1 Art
   ========================================================================== */

/* --- 01. Continuous Inline Sans-600 + Serif-400 Hero Statement & 90s Film --- */
.hero {
  padding-top: clamp(32px, 5.2vw, 68px);
  padding-bottom: clamp(64px, 8vw, 112px);
}

.hero-statement {
  max-width: 100%;
}

/* Exact Anthropic .LOCOdG_text fluid scale: 25px (390px) -> 48px (1920px), ~40.78px at 1440px */
.hero-statement h1 {
  font-family: var(--font-serif);
  font-size: clamp(25px, calc(25px + 23 * (100vw - 390px) / 1530), 48px);
  font-weight: 400;
  line-height: 1.34;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: pretty;
}

.hero-lead {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--ink);
}

.hero-rest {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--ink);
}

/* Cinema Hero Stage (Aligned to Anthropic's Exact 1920px GPU clip-path Full-Bleed Expansion) */
.hero-film {
  margin-top: clamp(36px, 4.8vw, 64px);
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
}

.cinema-frame {
  --film-expand: 0;
  --film-inset: calc(var(--gutter) * (1 - var(--film-expand)));
  position: relative;
  width: 100%;
  height: min(86svh, 56.25vw, 1080px);
  background: var(--darkroom);
  overflow: hidden;
  isolation: isolate;
  clip-path: inset(0 var(--film-inset) 0 var(--film-inset));
  will-change: clip-path;
}

.cinema-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  background: var(--darkroom);
}

.cinema-video:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: -4px;
}

/* Golden-hour idle still shown after first playthrough finishes (or reduced-motion rest) */
.cinema-idle-still {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s var(--ease);
}

.cinema-frame[data-state="idle"] .cinema-idle-still {
  opacity: 1;
  pointer-events: auto;
}

/* Transparent-background bottom-right icon — stays inside visible clip inset, hidden during playback */
.cinema-idle-toggle {
  position: absolute;
  right: calc(var(--film-inset) + 18px);
  bottom: 18px;
  z-index: 5;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: rgba(250, 249, 235, 0.92);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease), transform 0.22s var(--ease);
}

.cinema-frame[data-state="idle"] .cinema-idle-toggle,
.cinema-frame[data-state="paused"] .cinema-idle-toggle {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cinema-idle-toggle:hover {
  color: var(--paper);
  transform: scale(1.08);
}

.cinema-idle-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 6px rgba(20, 20, 19, 0.48));
}

/* --- Shared Section Band Head (Exact Anthropic 13px Bold Framed Rule) --- */
.band {
  padding-bottom: clamp(68px, 8.5vw, 120px);
}

.band-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: clamp(28px, 3.6vw, 44px);
}

.band-head h2 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.54;
  letter-spacing: 0.01em;
  color: var(--ink);
}

/* ==========================================================================
   02. WORKS & PRACTICE — 3 Minimal Horizontal Banners (Name, Date, Description Only)
   ========================================================================== */

.works-banners {
  display: grid;
  gap: 12px;
}

.work-banner {
  display: block;
  padding: 26px clamp(22px, 3vw, 36px);
  background: var(--surface);
  transition: background-color 0.22s var(--ease);
}

.work-banner:hover {
  background: var(--surface-hover);
}

.work-banner-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.work-banner h3 {
  font-family: var(--font-sans);
  font-size: clamp(20px, 1.55vw, 22px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.012em;
  font-variation-settings: "opsz" 16;
  color: var(--ink);
}

.work-banner time {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--ink-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.work-banner p {
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.66;
  color: var(--ink-body);
  max-width: 58em;
}

/* ==========================================================================
   03. EXPLORE — Borderless 3:4 v1 Archival Plates on Xuan Paper (4 Items Clean)
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 32px);
}

.gallery-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gallery-plate {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface);
}

.gallery-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}

.gallery-item:hover .gallery-plate img {
  transform: scale(1.022);
}

.gallery-item h3 {
  margin-top: 18px;
  font-family: var(--font-sans);
  font-size: clamp(20px, 1.5vw, 22px);
  font-weight: 700;
  line-height: 1.25;
  font-variation-settings: "opsz" 16;
  color: var(--ink);
}

.gallery-item:hover h3 {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.gallery-item p {
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--ink-muted);
}

/* ==========================================================================
   04. RESEARCH — Clean Typographic Lead + Silent AnthropicSans Accordion List
   ========================================================================== */

.research-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: clamp(40px, 6.5vw, 104px);
  align-items: start;
}

.research-aside {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  min-width: 0;
}

.research-aside h2 {
  font-family: var(--font-sans);
  font-size: clamp(22px, 2.1vw, 28px);
  font-weight: 600;
  line-height: 1.36;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.research-list {
  min-width: 0;
  border-top: 1px solid var(--hairline);
}

.research-list details {
  border-bottom: 1px solid var(--hairline);
}

.research-list summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
  padding: 0;
  cursor: pointer;
}

.research-list summary::-webkit-details-marker {
  display: none;
}

.research-list summary h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  transition: opacity 0.18s var(--ease);
}

.research-list summary:hover h3 {
  opacity: 0.65;
}

.research-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  stroke: var(--ink-muted);
  stroke-width: 1.4;
  fill: none;
  transition: transform 0.22s var(--ease);
}

.research-list details[open] .research-icon {
  transform: rotate(45deg);
  stroke: var(--ink);
}

.detail-content {
  padding: 0 0 24px;
  max-width: 44em;
}

.detail-content p {
  font-family: var(--font-sans);
  font-size: 14.75px;
  line-height: 1.72;
  color: var(--ink-body);
}

.detail-content p + p {
  margin-top: 12px;
}

.research-project {
  margin-top: 16px;
  padding: 16px 18px;
  background: var(--surface);
}

.research-project p {
  font-size: 14px;
  line-height: 1.68;
}

.research-project strong {
  font-weight: 600;
  color: var(--ink);
}

.detail-project-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 2px;
}

.detail-project-link:hover {
  border-bottom-color: var(--ink);
}

.detail-topics {
  margin-top: 14px !important;
  font-size: 13px !important;
  color: var(--ink-muted) !important;
}

/* ==========================================================================
   Responsive Home Breakpoints
   ========================================================================== */

@media (max-width: 980px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .research-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .research-aside {
    position: static;
  }
  .research-list summary {
    height: auto;
    padding: 19px 0;
  }
}

@media (max-width: 680px) {
  .cinema-idle-toggle {
    width: 34px;
    height: 34px;
    right: 12px;
    bottom: 12px;
  }
  .cinema-idle-toggle svg {
    width: 19px;
    height: 19px;
  }
  .work-banner {
    padding: 22px 20px;
  }
  .work-banner-head {
    flex-direction: column;
    gap: 4px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
