@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400..700;1,400..700&family=Noto+Sans+SC:wght@100..900&display=swap');

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #111111;
  --muted: #6e6e6e;
  --line: rgba(17, 17, 17, 0.12);
  --radius-window: 14px;
  --ease: ease-in-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: Libre Baskerville, Noto Sans SC, sans-serif;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: none;
  touch-action: manipulation;
}

/* Minimal Top Bar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 18px 24px;
  background: linear-gradient(
    to bottom,
    rgb(83, 227, 95) 0%,
    rgba(83, 227, 95, 0.55) 45%,
    rgba(83, 227, 95, 0) 100%
  );
  pointer-events: none;
}

.site-header a,
.site-header button {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  height: 32px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .brand-logo {
    height: 50px;
    max-width: 280px;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-link {
  text-decoration: none;
  color: #111111;
  font-size: 0.85rem;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 999px;
  background: transparent;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}

.nav-link:hover {
  background: rgb(83, 227, 95);
  color: #111111;
}

.nav-link.is-active {
  color: rgb(0, 0, 0);
  border: 1px solid rgb(255, 255, 255);
}

.lang-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  margin-left: 4px;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}

.lang-btn:hover {
  background: rgb(83, 227, 95);
  color: #111111;
}

/* 1. Full-Page Trailer */
.trailer-stage {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: rgb(83, 227, 95);
  animation: trailer-ease-in 650ms ease-in forwards;
}

.trailer-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.trailer-media--iframe {
  border: 0;
  pointer-events: none;
}

.trailer-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: clamp(24px, 5vw, 52px) clamp(20px, 4vw, 48px);
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 45%);
  color: #ffffff;
}

.trailer-kicker {
  margin: 0 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.88;
}

@keyframes trailer-ease-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .trailer-stage {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.enter-btn {
  text-decoration: none;
  color: rgb(83, 227, 95);
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(17, 17, 17, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 0.78rem;
  padding: 10px 15px;
  border-radius: 999px;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}

.enter-btn:hover {
  background: rgb(83, 227, 95);
  color: #111111;
}

/* Shared Page Container */
.container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 84px 12px 64px;
}

@media (min-width: 768px) {
  .container {
    padding: 84px 20px 64px;
  }
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  margin-bottom: 32px;
}

.section-head h1 {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

/* 2. work Grid (Straight-Edged Varied Ratios) */
.project-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 28px 12px;
  align-items: start;
}

@media (min-width: 768px) {
  .project-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 50px 12px;
  }
}

@media (min-width: 768px) {
  .project-card:nth-child(5n + 1) {
    grid-column: span 2;
  }
}

.project-card {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.thumb-frame {
  width: 100%;
  overflow: hidden;
  background: transparent;
  border-radius: 0;
}

.thumb-frame:not([class*="ratio-"]) img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.thumb-frame[class*="ratio-"] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card:hover .thumb-frame img {
  transform: scale(1.08);
  transition: transform 180ms var(--ease);
}

.card-title {
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
}

.card-sub {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 0.8;
}

/* Editorial Overlay Project Window (Reference Style) */
.project-modal {
  width: min(920px, calc(100vw - 20px));
  max-width: none;
  height: calc(100dvh - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  overflow-y: auto;
  animation: sheet-in 180ms var(--ease);
}

@media (min-width: 768px) {
  .project-modal {
    width: min(1040px, 78vw);
  }
}

.project-modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-sheet {
  min-height: 100%;
  background: var(--surface);
}

.sheet-top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px 16px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.sheet-info {
  flex: 1 1 auto;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sheet-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sheet-title {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.4;
}

.sheet-desc {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
}

.sheet-meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

@media (min-width: 640px) {
  .sheet-meta-grid {
    grid-template-columns: minmax(140px, 0.42fr) minmax(200px, 1fr);
    gap: 16px 24px;
  }
}

.sheet-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.sheet-client {
  font-size: 0.76rem;
  line-height: 1.45;
}

.sheet-client-link,
.sheet-credit-link {
  color: var(--ink);
  text-decoration: none;
  transition: background-color 150ms var(--ease);
}

.sheet-client-link:hover,
.sheet-credit-link:hover {
  color: rgb(83, 227, 95);
  text-decoration: none;
}

.sheet-credits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.75rem;
  line-height: 1.45;
}

.sheet-credit-item {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sheet-credit-role {
  color: var(--muted);
}

.sheet-credit-role::after {
  content: ":";
}

.sheet-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.8;
  transition: opacity 150ms var(--ease), transform 150ms var(--ease);
}

.sheet-close:hover {
  opacity: 1;
  transform: scale(1.08);
}

/* Stacked & Paired Media Inside Window */
.sheet-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 24px;
}

.media-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.media-row.is-two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-item {
  position: relative;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}

.media-item img,
.media-item video,
.media-item iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.media-item img {
  height: auto;
  object-fit: cover;
}

.media-item.is-video {
  aspect-ratio: 16 / 9;
}

.media-row.is-two-col .media-item.is-video {
  aspect-ratio: 4 / 3;
}

/* Center Play Button Overlay Before Playback */
.video-poster-btn {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #111111;
  cursor: pointer;
  display: block;
}

.video-poster-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-glyph {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 38px;
  border-radius: 6px;
  background: rgba(20, 20, 20, 0.82);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}

.video-poster-btn:hover .play-glyph {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(17, 17, 17, 0.95);
}

/* 3. About & Brief */
.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  align-items: start;
}

.about-media {
  width: 100%;
  overflow: hidden;
}

.about-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-right-stream {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.about-col {
  min-width: 0;
  padding: 20px 20px 40px;
}

.about-center-box {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

.about-below-fold {
  display: flex;
  flex-direction: column;
  padding: 28px 20px 96px;
}

.brief-col.brief-reveal {
  min-width: 0;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  opacity: 0;
  transition: opacity 750ms ease;
  will-change: opacity;
}

.brief-col.brief-reveal.is-visible {
  opacity: 1;
}

@media (min-width: 960px) {
  .container.about-layout {
    padding: 0;
  }

  .about-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    align-items: start;
    min-height: 100dvh;
  }

  .about-media {
    position: sticky;
    top: 0;
    height: 100dvh;
  }

  .about-media img {
    height: 100%;
    min-height: 100dvh;
  }

  .about-right-stream {
    min-height: 100dvh;
  }

  .about-col {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 88px 48px 48px;
  }

  .about-below-fold {
    padding: 36px 48px 104px;
  }
}

.about-col h1,
.brief-col h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.about-col p {
  margin: 0 0 24px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #222222;
}

.meta-list {
  margin: 0;
  display: grid;
  gap: 14px;
}

.meta-list div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.meta-list dt {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 3px;
}

.meta-list dd {
  margin: 0;
  font-size: 0.78rem;
}

.meta-list a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms var(--ease);
}

.meta-list a:hover {
  color: rgb(26, 168, 42);
  text-decoration: none;
}

.brief-form {
  display: grid;
  gap: 10px;
  background: var(--surface);
  border: 0px solid var(--line);
  border-radius: var(--radius-window);
  padding: 0px;
}

.field-row {
  display: grid;
  gap: 6px;
}

.field-row label {
  font-size: 0.78rem;
  color: var(--muted);
}

.field-row input,
.field-row select,
.field-row textarea {
  width: 100%;
  font: inherit;
  font-size: 0.78rem;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
}

.field-row input:focus,
.field-row select:focus,
.field-row textarea:focus {
  outline: 1px solid rgb(26, 168, 42);
}

.submit-btn {
  appearance: none;
  border: 0;
  background: rgb(26, 168, 42);;
  color: var(--surface);
  font: inherit;
  font-size: 0.78rem;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  justify-self: start;
  transition: opacity 180ms var(--ease);
}

.submit-btn:hover {
  opacity: 0.56;
}

.brief-status {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* "or.... ↓" prompt: centered, large minimal arrow */
.scroll-or-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 48px auto 0;
  width: fit-content;
  color: var(--ink);
  cursor: default;
}

.scroll-or-arrow .or-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.big-down-arrow {
  display: block;
  width: 28px;
  height: auto;
  animation: arrow-bob 2.2s var(--ease) infinite;
}

/* Project Brief: reveal when entering viewport */
.brief-col.brief-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 750ms ease,
    transform 750ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.brief-col.brief-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .brief-col.brief-reveal,
  .brief-col.brief-reveal.is-visible {
    opacity: 1;
    transition: none;
    will-change: auto;
  }

  .big-down-arrow,
  .scroll-arrow-big {
    animation: none;
  }
}

.trailer-media--iframe {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.trailer-media--iframe iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 0;
  transform: translate(-50%, -50%);
}

/* Floating Centered Copyright */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 25;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 16px max(12px, env(safe-area-inset-bottom));
  pointer-events: none;
}

.copyright-text {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-align: center;
  pointer-events: auto;
}