/* 日耕 DayAcre 官網 */

@font-face {
  font-family: "DayAcre Serif TC";
  src: url("/assets/fonts/dayacre-serif-tc.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DayAcre Latin";
  src: url("/assets/fonts/dayacre-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --green-950: #0a1411;
  --green-900: #0d1915;
  --green-850: #11201b;
  --green-800: #152822;
  --green-700: #1d3a30;
  --cream: #efe7d6;
  --cream-2: rgba(239, 231, 214, 0.78);
  --cream-3: rgba(239, 231, 214, 0.56);
  --gold: #d9a24a;
  --gold-2: #e9be6f;
  --gold-soft: rgba(217, 162, 74, 0.16);
  --line: rgba(239, 231, 214, 0.12);
  --line-2: rgba(239, 231, 214, 0.22);

  --serif: "DayAcre Serif TC", "Noto Serif TC", "Source Han Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
  --latin: "DayAcre Latin", "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --radius: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  background: var(--green-900);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--cream-2);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(217, 162, 74, 0.07), transparent 60%),
    linear-gradient(180deg, var(--green-900) 0%, var(--green-950) 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 底片顆粒 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
p, li, dd { text-wrap: pretty; }
h1, h2, h3, .lead, .hero-logline { text-wrap: balance; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: var(--cream); }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; color: var(--cream); font-weight: 600; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.sr-only, .hp {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--green-950); padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-family: var(--latin);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow-zh { font-family: var(--sans); font-weight: 400; font-size: 13px; letter-spacing: 0.32em; }

.i { width: 18px; height: 18px; flex: none; }

/* 按鈕 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font: 500 16px/1 var(--sans); letter-spacing: 0.08em;
  cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--green-950); box-shadow: 0 10px 30px -12px rgba(217, 162, 74, 0.6); }
.btn-gold:hover { background: var(--gold-2); color: var(--green-950); }
.btn-ghost { border-color: var(--line-2); color: var(--cream); background: rgba(239, 231, 214, 0.04); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* 頁首 */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(13, 25, 21, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); }
.brand-icon { width: 40px; height: 40px; border-radius: 10px; }
.brand-zh { font-family: var(--serif); font-size: 21px; letter-spacing: 0.2em; color: var(--cream); line-height: 1; margin: 0; }
.brand-en { font-family: var(--latin); font-weight: 200; font-size: 12px; letter-spacing: 0.5em; color: var(--gold); line-height: 1; margin: 0; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { color: var(--cream-2); font-size: 15px; letter-spacing: 0.12em; position: relative; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-nav a:hover { color: var(--cream); }
.site-nav a:hover::after { transform: scaleX(1); }

/* 首屏 */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 140px 0 clamp(72px, 11vh, 130px);
  isolation: isolate; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; background: var(--green-950); }
.hero-poster, .hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
}
.hero-poster { animation: drift 24s ease-in-out infinite alternate; }
.hero-video { opacity: 0; transition: opacity 1.6s var(--ease); }
.hero-video.is-ready { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 20, 17, 0.55) 0%, rgba(10, 20, 17, 0) 26%),
    linear-gradient(0deg, var(--green-900) 0%, rgba(13, 25, 21, 0.86) 24%, rgba(13, 25, 21, 0.2) 62%, rgba(13, 25, 21, 0) 80%),
    radial-gradient(120% 90% at 20% 80%, rgba(10, 20, 17, 0.55) 0%, rgba(10, 20, 17, 0) 60%),
    linear-gradient(90deg, rgba(10, 20, 17, 0.5) 0%, rgba(10, 20, 17, 0) 58%);
}
.hero-content { position: relative; }
.hero .eyebrow { color: var(--gold-2); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55); }
.hero-en, .hero-premiere, .hero-note { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45); }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(64px, 12vw, 148px);
  line-height: 1.05;
  letter-spacing: 0.16em;
  margin-right: -0.16em;
  color: #f7f2e6;
  text-shadow: 0 0 40px rgba(233, 190, 111, 0.28), 0 2px 30px rgba(0, 0, 0, 0.45);
}
.hero-en {
  font-family: var(--latin); font-weight: 200;
  font-size: clamp(13px, 1.5vw, 17px);
  letter-spacing: 0.5em; color: var(--cream-2);
  margin: 18px 0 0;
}
.gold-rule {
  display: block; width: 120px; height: 1px; margin: 30px 0 28px;
  background: linear-gradient(90deg, var(--gold), rgba(217, 162, 74, 0));
}
.hero-logline {
  font-family: var(--serif);
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.85; letter-spacing: 0.12em;
  color: var(--cream); max-width: 34em;
}
.hero-premiere { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 26px 0 30px; }
.premiere-date { font-size: clamp(17px, 1.8vw, 20px); letter-spacing: 0.16em; color: var(--cream); }
.premiere-where { font-size: clamp(17px, 1.8vw, 20px); letter-spacing: 0.16em; color: var(--gold-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin: 22px 0 0; font-size: 14px; letter-spacing: 0.2em; color: var(--cream-3); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px;
  border: 1px solid var(--line-2); border-radius: 20px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 9px; width: 2px; height: 8px; margin-left: -1px;
  background: var(--gold); border-radius: 2px; animation: cue 2s var(--ease) infinite;
}

/* 區塊 */
.section { position: relative; padding: clamp(84px, 12vw, 150px) 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section h2 { font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); letter-spacing: 0.14em; line-height: 1.4; }

/* 預告片 */
.trailer { padding-top: clamp(64px, 9vw, 110px); }
.player {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border-radius: var(--radius); overflow: hidden; background: #000;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line);
}
.player-video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player-start {
  position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  color: var(--cream);
  background: radial-gradient(60% 60% at 50% 50%, rgba(10, 20, 17, 0.15), rgba(10, 20, 17, 0.55));
  transition: background-color .3s var(--ease);
}
.play-ring {
  display: grid; place-items: center;
  width: clamp(72px, 9vw, 96px); height: clamp(72px, 9vw, 96px); border-radius: 50%;
  border: 1px solid rgba(233, 190, 111, 0.85);
  background: rgba(10, 20, 17, 0.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 0 10px rgba(217, 162, 74, 0.08);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s var(--ease);
}
.play-ring svg { width: 38%; height: 38%; margin-left: 6%; color: var(--gold-2); }
.player-start:hover .play-ring { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(217, 162, 74, 0.1); background: rgba(217, 162, 74, 0.18); }
.play-label { font-size: 15px; letter-spacing: 0.24em; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.play-time { margin-left: 12px; font-family: var(--latin); font-weight: 300; color: var(--cream-3); letter-spacing: 0.1em; }
.player.is-playing .player-start { display: none; }
.player-error {
  position: absolute; left: 16px; right: 16px; bottom: 16px; margin: 0;
  padding: 12px 16px; border-radius: 10px; background: rgba(10, 20, 17, 0.88); color: var(--cream); font-size: 15px;
}
.credits {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px;
  margin: 30px 0 0; color: var(--cream-2); font-size: 15px; letter-spacing: 0.14em;
}
.ai-note { text-align: center; margin: 10px 0 0; font-size: 13px; letter-spacing: 0.12em; color: var(--cream-3); }

/* 作品 */
.series { background: linear-gradient(180deg, rgba(21, 40, 34, 0) 0%, rgba(21, 40, 34, 0.55) 30%, rgba(21, 40, 34, 0.55) 70%, rgba(21, 40, 34, 0) 100%); }
.series-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.series-text h2 { margin-bottom: 26px; }
.lead { font-family: var(--serif); font-size: clamp(19px, 2vw, 23px); line-height: 1.9; letter-spacing: 0.1em; color: var(--cream); }
.en { font-family: var(--latin); font-weight: 300; font-size: 15px; line-height: 1.75; letter-spacing: 0.02em; color: var(--cream-3); margin-top: 1.6em; }
.facts { margin: 6px 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 6.5em 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--gold); letter-spacing: 0.16em; font-size: 15px; }
.facts dd { margin: 0; color: var(--cream); letter-spacing: 0.08em; }

.episodes {
  list-style: none; margin: clamp(56px, 7vw, 84px) 0 0; padding: 0 0 12px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--green-700) transparent;
}
.ep { scroll-snap-align: start; position: relative; }
.ep img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); filter: saturate(0.92); transition: transform .4s var(--ease), filter .4s var(--ease); }
.ep:hover img { transform: translateY(-3px); filter: saturate(1.05); }
.ep-no { display: inline-block; margin-top: 12px; font-family: var(--latin); font-weight: 300; letter-spacing: 0.3em; color: var(--cream); font-size: 14px; }
.ep-date { display: inline-block; margin-left: 12px; font-size: 14px; letter-spacing: 0.1em; color: var(--cream-3); }
.ep.is-next .ep-date { color: var(--gold-2); }
.ep.is-next img { box-shadow: 0 0 0 1px rgba(217, 162, 74, 0.7), 0 18px 40px -18px rgba(217, 162, 74, 0.5); }
.ep-hint { margin: 18px 0 0; font-size: 14px; letter-spacing: 0.12em; color: var(--cream-3); }

/* 關於 */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.about-quote { position: sticky; top: 120px; }
.quote { font-size: clamp(32px, 4.4vw, 54px) !important; line-height: 1.55 !important; letter-spacing: 0.12em !important; }
.about-body p { color: var(--cream-2); }
.about-body p:first-child { color: var(--cream); font-size: 19px; }
.pillars { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; }
.pillars li { background: var(--green-900); padding: 20px 22px; display: grid; gap: 4px; }
.pillars strong { color: var(--gold-2); font-weight: 500; letter-spacing: 0.18em; }
.pillars span { font-size: 15px; color: var(--cream-2); }

/* 訂閱與徵件 */
.join { padding-top: clamp(40px, 6vw, 80px); }
.join-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
.panel {
  position: relative; padding: clamp(30px, 4vw, 48px);
  border-radius: 22px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(29, 58, 48, 0.55), rgba(13, 25, 21, 0.55));
  overflow: hidden;
}
.panel::before {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 162, 74, 0.14), rgba(217, 162, 74, 0) 70%);
  pointer-events: none;
}
.panel h2 { font-size: clamp(24px, 2.8vw, 32px); margin-bottom: 14px; }
.panel-alt { background: linear-gradient(160deg, rgba(21, 40, 34, 0.5), rgba(10, 20, 17, 0.5)); }
.muted { color: var(--cream-3); font-size: 15px; }
.mail { margin: 18px 0 0; font-family: var(--latin); font-weight: 300; letter-spacing: 0.08em; }

.subscribe { margin-top: 26px; }
.field-row { display: flex; gap: 10px; }
.field-row input {
  flex: 1; min-width: 0; min-height: 50px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(10, 20, 17, 0.55); color: var(--cream);
  font: 400 16px/1 var(--sans); letter-spacing: 0.04em;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field-row input::placeholder { color: var(--cream-3); }
.field-row input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 14px; line-height: 1.7; color: var(--cream-2); cursor: pointer; }
.consent input { margin-top: 5px; width: 17px; height: 17px; accent-color: var(--gold); flex: none; }
.consent a { margin-left: 6px; }
.form-status { min-height: 1.6em; margin: 14px 0 0; font-size: 15px; }
.form-status.is-ok { color: var(--gold-2); }
.form-status.is-error { color: #f0a58f; }

/* 頁尾 */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 56px; margin-top: clamp(60px, 8vw, 110px); }
.footer-inner { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 28px 48px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { border-radius: 12px; }
.footer-brand .brand-zh { font-size: 22px; margin-bottom: 8px; }
.social { list-style: none; display: flex; gap: 10px; margin: 0; padding: 0; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--cream-2);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.social a:hover { color: var(--gold-2); border-color: var(--gold); }
.social svg { width: 19px; height: 19px; }
.footer-meta { text-align: right; font-size: 13px; letter-spacing: 0.08em; color: var(--cream-3); }
.footer-meta p { margin: 0 0 4px; }
.footer-meta a { color: var(--cream-2); }

/* 進場動畫 */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero .reveal { transition-duration: 1.3s; }
.js .hero .reveal:nth-child(2) { transition-delay: .08s; }
.js .hero .reveal:nth-child(3) { transition-delay: .16s; }
.js .hero .reveal:nth-child(4) { transition-delay: .22s; }
.js .hero .reveal:nth-child(5) { transition-delay: .3s; }
.js .hero .reveal:nth-child(6) { transition-delay: .38s; }
.js .hero .reveal:nth-child(7) { transition-delay: .46s; }
.js .hero .reveal:nth-child(8) { transition-delay: .54s; }

@keyframes drift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-1.2%, -1%, 0); } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }

/* 手機 */
@media (max-width: 960px) {
  .site-nav { display: none; }
  .header-yt { margin-left: auto; }
  .series-grid, .about-grid, .join-grid { grid-template-columns: 1fr; }
  .about-quote { position: static; }
  .footer-inner { grid-template-columns: 1fr; justify-items: start; }
  .footer-meta { text-align: left; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .site-header .brand-en { display: none; }
  .header-yt span { display: none; }
  .header-yt { width: 40px; padding: 0; }
  .hero { padding-top: 120px; }
  .hero-title { letter-spacing: 0.1em; margin-right: -0.1em; }
  .hero-en { letter-spacing: 0.42em; }
  .br-wide { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .field-row { flex-direction: column; }
  .field-row .btn { width: 100%; }
  .episodes { grid-auto-columns: 72%; }
  .facts div { grid-template-columns: 5.5em 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* 說明頁、404 */
.doc .header-back { margin-left: auto; }
.doc-body { max-width: 760px; padding: 140px 0 40px; }
.doc-body h1 { font-family: var(--serif); font-size: clamp(32px, 4vw, 44px); letter-spacing: 0.14em; margin-bottom: 10px; }
.doc-body h2 { font-family: var(--serif); font-size: 21px; letter-spacing: 0.12em; margin: 44px 0 14px; color: var(--cream); }
.doc-body ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc-body li { margin-bottom: 0.5em; }
.doc-body strong { color: var(--cream); font-weight: 500; }
.doc-date { color: var(--cream-3); font-size: 14px; letter-spacing: 0.1em; margin-bottom: 36px; }
.doc-contact { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.notfound { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; }
.notfound img { border-radius: 16px; margin-bottom: 22px; }
.notfound h1 { font-family: var(--serif); font-size: clamp(26px, 4vw, 38px); letter-spacing: 0.14em; margin-bottom: 8px; }
.notfound .btn { margin-top: 22px; }
