:root {
  color-scheme: dark;
  font-family: Inter, "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  letter-spacing: 0;
  background: #090807;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 84px 84px,
    linear-gradient(180deg, #090807 0%, #15110d 42%, #070707 100%);
  color: #f7f0df;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  content: "";
  opacity: 0.17;
  mix-blend-mode: soft-light;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 3px);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.film-site {
  --ink: #f7f0df;
  --muted: rgba(247, 240, 223, 0.68);
  --soft: rgba(247, 240, 223, 0.1);
  --line: rgba(247, 240, 223, 0.2);
  --amber: #f0b15d;
  --cyan: #86d9e5;
  --red: #c95648;
  --black: #090807;
  --grain: 62;
  --grain-level: 62%;
  --grain-opacity: 0.15;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(9, 8, 7, 0) 0%, rgba(9, 8, 7, 0.88) 89vh, rgba(9, 8, 7, 1) 100%),
    linear-gradient(120deg, rgba(240, 177, 93, 0.12), transparent 34%, rgba(134, 217, 229, 0.08));
}

.film-nav {
  position: fixed;
  top: 16px;
  right: clamp(14px, 4vw, 44px);
  left: clamp(14px, 4vw, 44px);
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(247, 240, 223, 0.2);
  border-radius: 8px;
  background: rgba(9, 8, 7, 0.56);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.film-nav.is-scrolled {
  transform: translateY(-6px);
  border-color: rgba(240, 177, 93, 0.42);
  background: rgba(9, 8, 7, 0.78);
}

.film-brand,
.nav-links,
.nav-actions,
.hero-actions,
.hero-stats,
.film-footer {
  display: flex;
  align-items: center;
}

.film-brand {
  min-width: 0;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(9, 8, 7, 0.24);
  border-radius: 8px;
  background: #f7f0df;
  color: #15110d;
  font-weight: 900;
  box-shadow: inset 0 -8px 18px rgba(0, 0, 0, 0.13);
}

.film-brand strong,
.film-brand small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.film-brand strong {
  font-size: 16px;
}

.film-brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.nav-links {
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  color: rgba(247, 240, 223, 0.76);
  font-size: 14px;
}

.nav-links a,
.film-footer a {
  text-decoration: none;
}

.nav-links a {
  position: relative;
  padding: 10px 0;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  background: var(--amber);
  transition: transform 0.24s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-actions {
  justify-self: end;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-action {
  padding: 12px 16px;
  border: 1px solid rgba(247, 240, 223, 0.28);
  border-radius: 999px;
  background: rgba(247, 240, 223, 0.08);
  text-decoration: none;
  font-size: 14px;
  transition: transform 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.nav-action:hover,
.nav-action:focus-visible {
  transform: translateY(-2px);
  background: #f7f0df;
  color: #090807;
}

.hero {
  position: relative;
  display: grid;
  min-height: 76svh;
  padding: clamp(96px, 12vh, 138px) clamp(20px, 6vw, 86px) 54px;
  isolation: isolate;
  overflow: hidden;
}

.hero-image,
.hero-image::after,
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.08) brightness(0.82);
  transform: scale(1.02);
}

.hero-image::after {
  content: "";
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(9, 8, 7, 0.93) 0%, rgba(9, 8, 7, 0.72) 36%, rgba(9, 8, 7, 0.16) 72%, rgba(9, 8, 7, 0.74) 100%),
    linear-gradient(180deg, rgba(9, 8, 7, 0.12) 0%, rgba(9, 8, 7, 0.2) 45%, rgba(9, 8, 7, 0.94) 100%);
}

.hero-grain {
  z-index: -1;
  opacity: var(--grain-opacity);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 7px);
  mix-blend-mode: overlay;
}

.hero::before,
.hero::after {
  position: absolute;
  top: 88px;
  bottom: 42px;
  z-index: -1;
  width: 36px;
  content: "";
  opacity: 0.72;
  background:
    repeating-linear-gradient(180deg, #060504 0 18px, transparent 18px 28px, #060504 28px 46px),
    linear-gradient(#201915, #090807);
  box-shadow: inset 0 0 0 1px rgba(247, 240, 223, 0.08);
}

.hero::before {
  left: clamp(9px, 2.2vw, 30px);
}

.hero::after {
  right: clamp(9px, 2.2vw, 30px);
}

.film-code {
  position: absolute;
  right: clamp(58px, 8vw, 120px);
  bottom: 44px;
  display: flex;
  gap: 14px;
  color: rgba(247, 240, 223, 0.54);
  font-size: 11px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero-copy {
  width: min(760px, 100%);
  align-self: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  color: var(--ink);
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(42px, 6.2vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 650px;
  margin: 20px 0 0;
  color: rgba(247, 240, 223, 0.78);
  font-size: clamp(17px, 2.2vw, 24px);
  line-height: 1.75;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid rgba(247, 240, 223, 0.25);
  border-radius: 999px;
  background: rgba(247, 240, 223, 0.08);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(240, 177, 93, 0.8);
}

.button.primary {
  border-color: #f7f0df;
  background: #f7f0df;
  color: #090807;
}

.button.ghost {
  color: rgba(247, 240, 223, 0.9);
}

.hero-stats {
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
}

.hero-stats div {
  min-width: 132px;
  padding: 11px 14px;
  border: 1px solid rgba(247, 240, 223, 0.16);
  border-radius: 8px;
  background: rgba(9, 8, 7, 0.42);
  backdrop-filter: blur(10px);
}

.hero-stats dt {
  color: var(--amber);
  font-size: 22px;
  font-weight: 900;
}

.hero-stats dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.scroll-cue {
  position: absolute;
  bottom: 12px;
  left: 50%;
  color: rgba(247, 240, 223, 0.7);
  font-size: 13px;
  text-decoration: none;
  transform: translateX(-50%);
}

.scroll-cue::after {
  display: block;
  width: 1px;
  height: 28px;
  margin: 8px auto 0;
  content: "";
  background: linear-gradient(var(--amber), transparent);
}

.section {
  position: relative;
  width: min(1380px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(68px, 9vw, 118px) 0;
}

.contact-strip {
  width: 100%;
  min-height: calc(100svh + var(--portfolio-scroll-distance, 3200px));
  margin: 0;
  padding: 0;
}

.portfolio-sticky {
  position: sticky;
  top: 0;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(94px, 12vh, 128px) clamp(20px, 6vw, 86px) clamp(38px, 7vh, 72px);
  background:
    linear-gradient(180deg, rgba(9, 8, 7, 0.98), rgba(15, 12, 10, 0.94)),
    linear-gradient(90deg, rgba(240, 177, 93, 0.08), transparent 34%, rgba(134, 217, 229, 0.06));
}

.portfolio-heading {
  display: block;
  width: min(1380px, 100%);
  margin: 0 auto clamp(22px, 4vw, 38px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 0.45fr);
  gap: clamp(24px, 6vw, 88px);
  align-items: end;
  margin-bottom: clamp(26px, 5vw, 54px);
}

.section-heading.compact {
  display: block;
  max-width: 760px;
}

.section-heading h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(1380px, 100%);
  margin: 0 auto 18px;
}

.filter-tabs button,
.brief-builder button {
  border: 1px solid rgba(247, 240, 223, 0.18);
  background: rgba(247, 240, 223, 0.07);
  color: rgba(247, 240, 223, 0.78);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.filter-tabs button {
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 999px;
}

.filter-tabs button:hover,
.filter-tabs button:focus-visible,
.filter-tabs button.is-active,
.brief-builder button:hover,
.brief-builder button:focus-visible,
.brief-builder button.is-selected {
  transform: translateY(-1px);
  border-color: rgba(240, 177, 93, 0.78);
  background: rgba(240, 177, 93, 0.16);
  color: var(--ink);
}

.film-roll {
  position: relative;
  display: flex;
  width: max-content;
  gap: 0;
  overflow: visible;
  padding: 38px 54px;
  transform: translate3d(calc(var(--portfolio-enter, 0px) - var(--portfolio-shift, 0px)), 0, 0);
  will-change: transform;
  border: 1px solid rgba(247, 240, 223, 0.14);
  border-radius: 4px;
  background:
    linear-gradient(90deg, #050504 0 28px, transparent 28px calc(100% - 28px), #050504 calc(100% - 28px) 100%),
    linear-gradient(180deg, #050504 0 28px, rgba(18, 15, 12, 0.98) 28px calc(100% - 28px), #050504 calc(100% - 28px) 100%);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.36),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.film-roll::before,
.film-roll::after {
  position: absolute;
  right: 12px;
  left: 12px;
  height: 16px;
  pointer-events: none;
  content: "";
  opacity: 0.88;
  background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(247, 240, 223, 0.38) 18px 30px, transparent 30px 48px);
}

.film-roll::before {
  top: 12px;
}

.film-roll::after {
  bottom: 12px;
}

.film-frame {
  position: relative;
  flex: 0 0 clamp(230px, 28vw, 360px);
  min-width: 0;
  overflow: hidden;
  padding: 11px;
  border: 1px solid rgba(247, 240, 223, 0.1);
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 20%, transparent 80%, rgba(255, 255, 255, 0.04)),
    #0c0a08;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.66),
    inset 0 14px 30px rgba(255, 255, 255, 0.025);
  transition: opacity 0.24s ease, transform 0.24s ease, border-color 0.24s ease;
}

.film-frame::before,
.film-frame::after {
  position: absolute;
  top: 16px;
  bottom: 16px;
  width: 8px;
  pointer-events: none;
  content: "";
  opacity: 0.2;
  background: repeating-linear-gradient(180deg, rgba(247, 240, 223, 0.75) 0 8px, transparent 8px 18px);
}

.film-frame::before {
  left: 4px;
}

.film-frame::after {
  right: 4px;
}

.film-frame:hover,
.film-frame:focus-within {
  transform: translateY(-4px);
  border-color: rgba(134, 217, 229, 0.55);
}

.film-frame.is-hidden {
  display: none;
}

.film-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(247, 240, 223, 0.2);
  border-radius: 2px;
  object-fit: cover;
  filter: grayscale(0.58) sepia(0.16) contrast(1.05);
  pointer-events: none;
  user-select: none;
  box-shadow:
    0 0 0 8px #080706,
    0 18px 36px rgba(0, 0, 0, 0.34);
}

.film-frame:nth-child(1) img {
  object-position: 48% 42%;
}

.film-frame:nth-child(2) img {
  object-position: 63% 48%;
}

.film-frame:nth-child(3) img {
  object-position: 70% 38%;
}

.film-frame:nth-child(4) img {
  object-position: 78% 55%;
}

.film-frame div {
  min-height: 138px;
  padding: 16px;
}

.film-frame span,
.rate-card span,
.process-list span,
.negative-label {
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.film-frame h3,
.rate-card h3,
.process-list h3,
.brief-output h3 {
  margin: 8px 0 8px;
  font-size: 22px;
  line-height: 1.15;
}

.film-frame p,
.rate-card p,
.process-list p,
.brief-output p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.roll-count {
  margin: 16px 0 0;
  color: rgba(247, 240, 223, 0.58);
  font-size: 13px;
}

.process-section {
  width: 100%;
  padding-right: clamp(20px, 6vw, 86px);
  padding-left: clamp(20px, 6vw, 86px);
  background:
    linear-gradient(180deg, rgba(247, 240, 223, 0.04), rgba(9, 8, 7, 0)),
    linear-gradient(90deg, rgba(201, 86, 72, 0.1), transparent 32%, rgba(134, 217, 229, 0.08));
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 1380px;
  margin: clamp(28px, 5vw, 54px) auto 0;
  padding: 0;
  list-style: none;
  border: 1px solid rgba(247, 240, 223, 0.14);
  border-radius: 8px;
  overflow: hidden;
}

.process-list li {
  min-height: 230px;
  padding: clamp(22px, 3vw, 34px);
  background: rgba(247, 240, 223, 0.055);
}

.rate-grid,
.booking-layout {
  display: grid;
  gap: 14px;
}

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

.rate-card {
  min-height: 265px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(247, 240, 223, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(247, 240, 223, 0.075), rgba(247, 240, 223, 0.025)),
    #0d0b09;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.rate-card:hover,
.rate-card:focus-within {
  transform: translateY(-5px);
  border-color: rgba(240, 177, 93, 0.58);
}

.rate-card.featured {
  border-color: rgba(240, 177, 93, 0.44);
  background:
    linear-gradient(135deg, rgba(240, 177, 93, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(247, 240, 223, 0.08), rgba(247, 240, 223, 0.03)),
    #0d0b09;
}

.rate-card strong {
  display: block;
  margin-top: 28px;
  color: var(--ink);
  font-size: 18px;
}

.booking-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.7fr);
  align-items: start;
}

.brief-builder,
.brief-output {
  border: 1px solid rgba(247, 240, 223, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(247, 240, 223, 0.075), rgba(247, 240, 223, 0.025)),
    #0d0b09;
}

.brief-builder {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 34px);
}

.brief-builder fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.brief-builder legend,
.brief-builder label > span,
.range-control > span {
  width: 100%;
  margin-bottom: 4px;
  color: rgba(247, 240, 223, 0.86);
  font-weight: 800;
}

.brief-builder button {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
}

.brief-builder label {
  display: grid;
  gap: 10px;
}

.brief-builder input[type="text"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(247, 240, 223, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  padding: 12px 14px;
  outline: 0;
}

.brief-builder input[type="text"]:focus {
  border-color: rgba(134, 217, 229, 0.7);
}

.range-control input {
  width: 100%;
  accent-color: var(--amber);
}

.submit-button {
  width: fit-content;
  border: 0;
}

.brief-output {
  position: sticky;
  top: 102px;
  min-height: 420px;
  padding: clamp(22px, 4vw, 40px);
  overflow: hidden;
}

.brief-output::before {
  position: absolute;
  top: 14px;
  right: 14px;
  bottom: 14px;
  width: 20px;
  content: "";
  opacity: 0.42;
  background: repeating-linear-gradient(180deg, rgba(247, 240, 223, 0.6) 0 9px, transparent 9px 18px);
}

.brief-output h3 {
  max-width: 360px;
  font-size: clamp(28px, 4vw, 46px);
}

.brief-output dl {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.brief-output dl div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(247, 240, 223, 0.12);
}

.brief-output dt {
  color: rgba(247, 240, 223, 0.54);
}

.brief-output dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.exposure-meter {
  height: 10px;
  margin: 26px 0 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(247, 240, 223, 0.1);
}

.exposure-meter span {
  display: block;
  width: var(--grain-level);
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--amber), var(--cyan));
  transition: width 0.24s ease;
}

.form-status {
  min-height: 28px;
  color: var(--cyan);
}

.film-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(20px, 6vw, 86px) 40px;
  border-top: 1px solid rgba(247, 240, 223, 0.14);
  color: rgba(247, 240, 223, 0.62);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

@media (max-width: 1040px) {
  .film-nav {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    grid-column: 2;
  }

  .section-heading,
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .rate-grid,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brief-output {
    position: relative;
    top: auto;
  }
}

@media (max-width: 720px) {
  .film-nav {
    top: 10px;
    right: 10px;
    left: 10px;
    gap: 10px;
  }

  .film-brand small {
    display: none;
  }

  .nav-action {
    padding: 10px 12px;
    font-size: 13px;
  }

  .hero {
    min-height: 74svh;
    padding: 96px 20px 54px;
  }

  .hero::before,
  .hero::after,
  .film-code {
    display: none;
  }

  .hero-image::after {
    background:
      linear-gradient(180deg, rgba(9, 8, 7, 0.52) 0%, rgba(9, 8, 7, 0.74) 42%, rgba(9, 8, 7, 0.96) 100%);
  }

  h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .hero-stats {
    display: none;
  }

  .section {
    width: min(100% - 28px, 1380px);
    padding: 58px 0;
  }

  .contact-strip {
    width: 100%;
    padding: 0;
  }

  .portfolio-sticky {
    padding: 86px 14px 42px;
  }

  .rate-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .film-roll {
    padding: 34px 42px;
  }

  .film-frame {
    flex-basis: min(74vw, 300px);
  }

  .film-roll::before,
  .film-roll::after {
    right: 20px;
    left: 20px;
  }

  .process-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .film-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
