:root {
  --font-sans: "Noto Sans TC", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", "Noto Sans TC", Georgia, serif;
  --paper: #e9e7e1;
  --card: #dedbd3;
  --ink: #2d2c29;
  --muted: #6d6a62;
  --soft: #a8a196;
  --line: rgba(45, 44, 41, 0.14);
  --accent: #8f7668;
  --max: 1240px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.8;
}

body::selection {
  background: rgba(143, 118, 104, 0.28);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 78px;
  padding: 0 clamp(22px, 3.2vw, 40px);
  border-bottom: 1px solid transparent;
  color: var(--ink);
  transition: background 240ms ease, border-color 240ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  border-color: var(--line);
  background: rgba(233, 231, 225, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  width: clamp(190px, 19vw, 250px);
  min-width: 190px;
}

.brand img {
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(30px, 4.8vw, 58px);
  color: rgba(45, 44, 41, 0.78);
  font-size: 0.72rem;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

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

.site-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  margin: 7px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 92px clamp(22px, 3.2vw, 40px) 54px;
}

.hero-media {
  position: absolute;
  inset: 78px 0 0;
  background:
    linear-gradient(90deg, rgba(26, 24, 21, 0.48), rgba(26, 24, 21, 0.14) 52%, rgba(26, 24, 21, 0.04)),
    url("./assets/hero-interior.png") center / cover;
}

.hero-content {
  position: relative;
  width: min(760px, 100%);
  color: #f4f1eb;
}

.eyebrow,
.section-label,
.service-list p,
.work-item p,
.process-grid span,
address span {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 22px;
  color: rgba(244, 241, 235, 0.74);
}

h1,
h2,
h3,
p,
blockquote {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-family: var(--font-serif);
  font-size: clamp(3.8rem, 8.5vw, 7.8rem);
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: rgba(45, 44, 41, 0.25);
  font-family: var(--font-serif);
  font-size: clamp(4.2rem, 9vw, 8.9rem);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 0.95;
  text-transform: uppercase;
}

h3 {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 3vw, 3.05rem);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.35;
}

.hero p:not(.eyebrow) {
  width: auto;
  margin-bottom: 0;
  color: rgba(244, 241, 235, 0.86);
  font-size: 1.05rem;
}

.hero-intro,
.about-statement,
.contact-title {
  white-space: nowrap;
}

.scroll-cue {
  position: absolute;
  right: clamp(22px, 3.2vw, 40px);
  bottom: 54px;
  color: rgba(244, 241, 235, 0.72);
  font-size: 0.7rem;
  letter-spacing: 0;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.scroll-cue::after {
  display: block;
  width: 1px;
  height: 54px;
  margin: 16px auto 0;
  background: currentColor;
  content: "";
}

.section-shell {
  width: min(var(--max), calc(100% - clamp(44px, 6.25vw, 80px)));
  margin: 0 auto;
  padding-top: clamp(92px, 13vw, 148px);
}

.section-title {
  display: grid;
  gap: 18px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
}

.section-label::before {
  width: 32px;
  height: 1px;
  background: currentColor;
  content: "";
}

.about {
  display: grid;
  grid-template-columns: minmax(260px, 0.88fr) minmax(320px, 0.94fr);
  gap: clamp(42px, 10vw, 132px);
  align-items: start;
}

.about-copy {
  padding-top: clamp(8px, 1.7vw, 22px);
}

.about-copy h3 {
  max-width: 540px;
  margin-bottom: 34px;
}

.about-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1rem;
}

.signature {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 42px;
}

.signature span {
  width: 72px;
  height: 1px;
  background: var(--accent);
}

.signature p {
  margin: 0 0 2px;
  color: var(--ink);
  letter-spacing: 0;
}

.signature small {
  color: var(--soft);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-list article {
  min-height: 330px;
  padding: 34px clamp(20px, 2.6vw, 34px);
  border-right: 1px solid var(--line);
}

.service-list article:last-child {
  border-right: 0;
}

.service-list span {
  display: block;
  margin-bottom: 72px;
  color: var(--soft);
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

.service-list h3 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2vw, 1.95rem);
}

.service-list p {
  margin-bottom: 22px;
  color: var(--accent);
}

.service-list small,
.process-grid small,
.work-item small {
  display: block;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.8;
}

.works-heading {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 390px);
  gap: 48px;
  align-items: end;
  margin-bottom: clamp(54px, 7vw, 74px);
}

.works-heading > p {
  margin: 0 0 16px;
  color: var(--muted);
}

.featured-film {
  position: relative;
  min-height: min(78vh, 860px);
  margin-bottom: clamp(26px, 3vw, 36px);
  overflow: hidden;
  background: #25231f;
  color: #f5f1eb;
}

.featured-film video {
  display: block;
  width: 100%;
  height: min(78vh, 860px);
  min-height: 620px;
  object-fit: cover;
  filter: saturate(0.8) contrast(0.96);
}

.featured-film-copy {
  position: absolute;
  inset: auto 0 0;
  padding: 120px clamp(26px, 5vw, 66px) clamp(28px, 4vw, 52px);
  pointer-events: none;
  background: linear-gradient(0deg, rgba(20, 18, 16, 0.75), transparent);
}

.featured-film-copy p {
  margin-bottom: 12px;
  color: rgba(245, 241, 235, 0.68);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.featured-film-copy h3 {
  margin-bottom: 8px;
  color: inherit;
  font-size: clamp(2.3rem, 5vw, 4.9rem);
}

.featured-film-copy span {
  color: rgba(245, 241, 235, 0.76);
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
  gap: clamp(24px, 3vw, 32px);
}

.work-item {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  background: var(--card);
}

.work-item-large {
  grid-row: span 2;
  min-height: 760px;
}

.work-item:nth-child(6n + 6) {
  grid-column: 1 / -1;
  min-height: 620px;
}

.work-item button,
.work-item img {
  width: 100%;
  height: 100%;
}

.work-item button {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.work-item img {
  object-fit: cover;
  filter: saturate(0.74) contrast(0.96);
  transition: transform 700ms ease, filter 700ms ease;
}

.work-item:hover img {
  transform: scale(1.035);
  filter: saturate(0.9) contrast(0.98);
}

.work-item div {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 92px clamp(24px, 4vw, 46px) clamp(24px, 3.4vw, 42px);
  background: linear-gradient(0deg, rgba(24, 22, 19, 0.72), rgba(24, 22, 19, 0));
  color: #f5f1eb;
}

.work-item h3 {
  margin-bottom: 6px;
  color: inherit;
  font-size: clamp(1.55rem, 2.4vw, 2.45rem);
}

.work-item p {
  margin-bottom: 10px;
  color: rgba(245, 241, 235, 0.82);
}

.work-item small {
  color: rgba(245, 241, 235, 0.7);
}

.project-dialog {
  width: min(1180px, calc(100% - 36px));
  max-height: min(88vh, 900px);
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
}

.project-dialog::backdrop {
  background: rgba(22, 21, 19, 0.58);
  backdrop-filter: blur(8px);
}

.dialog-close {
  position: sticky;
  z-index: 3;
  top: 18px;
  left: calc(100% - 58px);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 18px 18px -60px auto;
  border: 1px solid rgba(45, 44, 41, 0.24);
  background: rgba(233, 231, 225, 0.72);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.dialog-close::before,
.dialog-close::after {
  position: absolute;
  width: 18px;
  height: 1px;
  background: currentColor;
  content: "";
}

.dialog-close::before {
  transform: rotate(45deg);
}

.dialog-close::after {
  transform: rotate(-45deg);
}

.project-dialog-body {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(42px, 6vw, 74px);
}

.project-dialog-heading {
  position: sticky;
  top: 42px;
  align-self: start;
}

.project-dialog-heading p {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.project-dialog-heading h2 {
  margin-bottom: 18px;
  color: rgba(45, 44, 41, 0.32);
  font-size: clamp(3.2rem, 6vw, 6.6rem);
  letter-spacing: 0;
}

.project-dialog-heading small,
.project-dialog-heading span {
  display: block;
  color: var(--muted);
  line-height: 1.8;
}

.project-dialog-heading small {
  margin-bottom: 28px;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 22px);
}

.project-gallery figure {
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  background: var(--card);
}

.project-gallery .is-featured {
  grid-column: 1 / -1;
  min-height: 520px;
}

.project-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(0.96);
}

.process {
  margin-top: clamp(92px, 13vw, 148px);
  border-top: 1px solid var(--line);
  background: var(--card);
}

.process .section-shell {
  padding-bottom: clamp(92px, 13vw, 148px);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(54px, 7vw, 76px);
  background: var(--line);
}

.process-grid article {
  min-height: 340px;
  padding: 34px clamp(20px, 2.8vw, 34px);
  background: var(--card);
}

.process-grid p {
  margin-bottom: 70px;
  color: var(--soft);
  font-family: var(--font-serif);
  font-size: 1.4rem;
}

.process-grid h3 {
  margin-bottom: 6px;
  font-size: clamp(1.45rem, 2.3vw, 2.1rem);
}

.process-grid span {
  display: block;
  margin-bottom: 24px;
  color: var(--accent);
}

.testimonial {
  padding-bottom: clamp(92px, 13vw, 148px);
  text-align: center;
}

.quote-mark {
  margin-bottom: 18px;
  color: rgba(45, 44, 41, 0.18);
  font-family: var(--font-serif);
  font-size: clamp(4rem, 9vw, 8.4rem);
  line-height: 1;
}

blockquote {
  margin-bottom: 36px;
  color: var(--ink);
  font-size: clamp(1.55rem, 3.2vw, 3rem);
  font-weight: 300;
  line-height: 1.65;
}

.testimonial-viewport {
  display: grid;
  min-height: 280px;
}

.testimonial-slide {
  grid-area: 1 / 1;
  align-self: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.testimonial-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.testimonial p:not(.quote-mark) {
  margin-bottom: 4px;
  letter-spacing: 0;
}

.testimonial small {
  color: var(--soft);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.testimonial-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 1px solid var(--soft);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 220ms ease, transform 220ms ease;
}

.testimonial-dots button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  transform: scale(1.2);
}

.contact {
  border-top: 1px solid var(--line);
  background: var(--card);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(360px, 1fr);
  gap: clamp(44px, 9vw, 116px);
  padding-bottom: clamp(92px, 13vw, 148px);
}

.contact h3 {
  margin: clamp(36px, 5vw, 54px) 0 24px;
}

.contact p {
  max-width: 450px;
  color: var(--muted);
}

address {
  display: grid;
  gap: 4px;
  margin-top: 48px;
  font-style: normal;
}

address span {
  margin-top: 18px;
  color: var(--accent);
}

address p,
address a {
  margin: 0;
  color: var(--ink);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 26px;
  align-self: end;
}

.contact-form label {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: uppercase;
}

.contact-form .wide {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(45, 44, 41, 0.28);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  outline: 0;
}

.project-type {
  min-width: 0;
  padding: 0;
  border: 0;
}

.project-type legend {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.project-type > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.project-type label {
  position: relative;
  display: block;
  cursor: pointer;
}

.project-type input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.project-type span {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid rgba(45, 44, 41, 0.28);
  color: var(--ink);
  font-size: 0.86rem;
  text-transform: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.project-type input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.project-type input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.contact-form input {
  height: 42px;
}

.contact-form textarea {
  min-height: 118px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form button {
  justify-self: start;
  min-width: 146px;
  min-height: 48px;
  border: 1px solid rgba(45, 44, 41, 0.38);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.contact-form button:hover {
  background: var(--ink);
  color: var(--paper);
}

.contact-form-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--accent);
  font-size: 0.82rem;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(210px, 0.7fr);
  gap: clamp(32px, 6vw, 92px);
  padding: 58px clamp(22px, 3.2vw, 40px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer img {
  width: 188px;
  margin-bottom: 20px;
}

.site-footer p {
  margin-bottom: 8px;
}

.site-footer nav {
  display: grid;
  gap: 10px;
  color: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

@media (max-width: 920px) {
  .site-header {
    height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 18px 22px 22px;
    border-top: 1px solid var(--line);
    background: rgba(233, 231, 225, 0.96);
  }

  .site-header.is-open .site-nav {
    display: grid;
  }

  .site-nav a {
    padding: 16px 0;
  }

  .hero {
    padding-top: 90px;
  }

  .hero p:not(.eyebrow) {
    font-size: 0.9rem;
  }

  .hero-media {
    top: 64px;
  }

  .about,
  .works-heading,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .service-list article:nth-child(2) {
    border-right: 0;
  }

  .service-list article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .featured-film,
  .featured-film video {
    min-height: 680px;
  }

  .work-item,
  .work-item-large {
    min-height: min(78vh, 680px);
  }

  .work-item:nth-child(6n + 6) {
    grid-column: auto;
    min-height: min(78vh, 680px);
  }

  .project-dialog-body {
    grid-template-columns: 1fr;
  }

  .project-dialog-heading {
    position: static;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .brand {
    width: 165px;
    min-width: 165px;
  }

  .hero {
    min-height: 92svh;
    padding: 86px 20px 42px;
  }

  .hero-media {
    background:
      linear-gradient(0deg, rgba(26, 24, 21, 0.62), rgba(26, 24, 21, 0.04)),
      url("./assets/hero-interior.png") center / cover;
  }

  .scroll-cue {
    display: none;
  }

  .section-shell {
    width: calc(100% - 40px);
    padding-top: 82px;
  }

  h1 {
    font-size: 3.55rem;
  }

  h2 {
    font-size: clamp(3.4rem, 16vw, 5rem);
    letter-spacing: 0;
  }

  h3 {
    font-size: clamp(1.42rem, 8vw, 2.35rem);
  }

  .hero p:not(.eyebrow) {
    font-size: 0.72rem;
  }

  .about-statement {
    font-size: 1.28rem;
  }

  .contact-title {
    font-size: 3.35rem;
  }

  .service-list,
  .process-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .project-type > div {
    grid-template-columns: 1fr;
  }

  .service-list article {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-list article:last-child {
    border-bottom: 0;
  }

  .service-list span,
  .process-grid p {
    margin-bottom: 40px;
  }

  .work-item,
  .work-item-large {
    min-height: 510px;
  }

  .featured-film,
  .featured-film video {
    height: 72svh;
    min-height: 540px;
  }

  .featured-film-copy {
    padding: 110px 22px 70px;
  }

  .project-dialog {
    width: 100%;
    max-height: 100vh;
  }

  .project-dialog-body {
    padding: 28px 20px 42px;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .project-gallery figure,
  .project-gallery .is-featured {
    min-height: 360px;
  }

  blockquote {
    font-size: 1.45rem;
  }

  .testimonial-viewport {
    min-height: 330px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-slide {
    transform: none;
    transition: none;
  }
}
