:root {
  --paper: #f2efe7;
  --paper-deep: #e8e3d8;
  --ink: #122c24;
  --green: #075038;
  --green-dark: #052f24;
  --pink: #efd5d6;
  --yellow: #eadc55;
  --rule: rgba(18, 44, 36, 0.22);
  --serif: "Songti TC", "Noto Serif TC", "PMingLiU", serif;
  --sans: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  text-rendering: optimizeLegibility;
}

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

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

::selection {
  color: white;
  background: var(--green);
}

.site-nav {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 38px;
  color: white;
  text-shadow: 0 1px 10px rgba(0, 32, 22, 0.18);
  pointer-events: none;
}

.site-nav a {
  pointer-events: auto;
}

.brand-mark {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
}

.brand-mark i {
  color: var(--yellow);
  font-style: normal;
}

.nav-links {
  display: flex;
  gap: clamp(18px, 2.5vw, 42px);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.nav-links a {
  position: relative;
  padding-bottom: 6px;
}

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

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

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--green-dark);
}

.hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.003);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 31, 20, 0.18), transparent 46%, rgba(0, 24, 18, 0.08)),
    linear-gradient(0deg, rgba(0, 26, 19, 0.24), transparent 31%);
  pointer-events: none;
}

.hero-title-stage {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: clamp(9vw, 22.4vw, 430px);
  width: clamp(152px, 16.8vw, 286px);
  overflow: hidden;
  transform: translateY(-49%);
  animation: title-reveal 1.8s 0.35s cubic-bezier(0.22, 0.72, 0.18, 1) both;
}

.hero-title-drift {
  transform-origin: 50% 48%;
  animation: title-drift 9s 2.2s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-title-stage img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 10px rgba(0, 28, 18, 0.12));
}

.hero-caption {
  position: absolute;
  left: 38px;
  bottom: 34px;
  z-index: 3;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.24em;
}

.scroll-cue {
  position: absolute;
  right: 38px;
  bottom: 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.2em;
}

.scroll-cue i {
  width: 48px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.4);
}

.scroll-cue i::after {
  content: "";
  display: block;
  width: 50%;
  height: 100%;
  background: white;
  animation: scroll-line 2.4s ease-in-out infinite;
}

.introduction {
  padding: clamp(100px, 13vw, 200px) clamp(24px, 6vw, 100px) clamp(90px, 11vw, 170px);
  background: var(--paper);
}

.intro-kicker,
.eyebrow,
.section-index,
.project-meta span,
figcaption,
.site-footer,
.design-note li {
  font-family: var(--sans);
}

.intro-kicker,
.eyebrow {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.24em;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(380px, 1.15fr) minmax(280px, 0.85fr);
  gap: 7vw;
  align-items: end;
  margin-top: 58px;
}

.intro-grid h1 {
  margin: 0;
  font-size: clamp(64px, 8.4vw, 138px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.06em;
  white-space: nowrap;
}

.intro-grid h1 span {
  color: #e4bfc1;
  font-size: 0.45em;
  vertical-align: 0.22em;
}

.intro-grid > p {
  max-width: 520px;
  margin: 0;
  font-size: clamp(18px, 1.55vw, 25px);
  font-weight: 300;
  line-height: 2;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 110px;
  border-top: 1px solid var(--rule);
}

.project-meta div {
  display: grid;
  gap: 12px;
  padding: 22px 0;
  border-right: 1px solid var(--rule);
}

.project-meta div:not(:first-child) {
  padding-left: 30px;
}

.project-meta div:last-child {
  border-right: 0;
}

.project-meta span {
  color: rgba(18, 44, 36, 0.54);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.project-meta strong {
  font-size: 16px;
  font-weight: 400;
}

.proposal-section {
  padding: clamp(90px, 12vw, 190px) clamp(24px, 6vw, 100px);
}

.visual-section,
.postcard-section {
  background: #fbfaf6;
}

.poster-section,
.column-section {
  background: var(--paper-deep);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.3fr 0.85fr 1fr;
  gap: 5vw;
  align-items: start;
  margin-bottom: clamp(55px, 7vw, 110px);
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.section-index {
  margin: 0;
  color: rgba(18, 44, 36, 0.58);
  font-size: 11px;
  letter-spacing: 0.2em;
}

.section-heading h2 {
  margin: 15px 0 0;
  font-size: clamp(52px, 7vw, 106px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.05em;
}

.section-copy {
  max-width: 520px;
  margin: 0;
  font-size: clamp(16px, 1.28vw, 20px);
  font-weight: 300;
  line-height: 1.9;
}

.wide-image {
  margin: 0;
}

.wide-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.image-frame,
.mockup-frame,
.layout-board {
  overflow: hidden;
}

.image-frame img,
.mockup-frame img,
.layout-board img {
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.image-frame:hover img,
.mockup-frame:hover img,
.layout-board:hover img {
  transform: scale(1.015);
}

figcaption {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  color: rgba(18, 44, 36, 0.55);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.dark-frame figcaption {
  padding-inline: 2px;
}

.visual-detail {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(360px, 1.22fr);
  gap: 10vw;
  align-items: center;
  padding: clamp(100px, 13vw, 210px) 4vw 30px;
}

.portrait-visual {
  margin: 0;
  box-shadow: 0 36px 70px rgba(7, 47, 34, 0.12);
}

.design-note {
  max-width: 590px;
}

.design-note h3 {
  margin: 28px 0 40px;
  font-size: clamp(42px, 5vw, 78px);
  font-weight: 300;
  line-height: 1.32;
  letter-spacing: -0.04em;
}

.design-note > p:not(.eyebrow) {
  margin: 0;
  font-size: 18px;
  font-weight: 300;
  line-height: 2;
}

.design-note ul {
  margin: 60px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.design-note li {
  display: grid;
  grid-template-columns: 60px 1fr;
  padding: 17px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.design-note li span {
  color: rgba(18, 44, 36, 0.48);
}

.poster-detail {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 11vw;
  align-items: start;
  padding: clamp(90px, 12vw, 180px) 4vw 0;
}

.poster-copy {
  position: sticky;
  top: 120px;
}

.poster-copy > p:last-child {
  max-width: 420px;
  margin-top: 28px;
  font-size: 19px;
  line-height: 2;
}

.poster-sheet {
  margin: 0;
  box-shadow: 0 32px 80px rgba(18, 44, 36, 0.12);
}

.postcard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3vw;
  align-items: start;
  margin-top: clamp(90px, 12vw, 180px);
}

.postcard-card {
  margin: 0;
}

.postcard-card img {
  aspect-ratio: 21 / 15.34;
  object-fit: cover;
  box-shadow: 0 24px 55px rgba(18, 44, 36, 0.1);
}

.layout-board img {
  object-fit: contain;
  aspect-ratio: auto;
  background: transparent;
}

.column-views {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 5vw;
  align-items: start;
  margin-top: clamp(80px, 10vw, 150px);
}

.column-view {
  margin: 0;
}

.column-view:first-child {
  grid-row: span 2;
}

.column-view:first-child img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.column-view:not(:first-child) img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 50px;
  padding: 80px clamp(24px, 6vw, 100px) 100px;
  color: rgba(255, 255, 255, 0.74);
  background: var(--green-dark);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.8;
}

.site-footer div:last-child {
  text-align: right;
}

.footer-title {
  margin: 0;
  color: white;
  font-family: var(--serif);
  font-size: 34px;
  letter-spacing: 0.08em;
}

.site-footer p {
  margin: 0 0 6px;
}

.site-footer a {
  display: inline-block;
  margin-top: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

@keyframes title-reveal {
  0% {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: translateY(-47%);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(-49%);
  }
}

@keyframes title-drift {
  0% { transform: translate3d(0, -3px, 0) rotate(-0.08deg); }
  48% { transform: translate3d(1.5px, 1px, 0) rotate(0.04deg); }
  100% { transform: translate3d(-1px, 4px, 0) rotate(0.1deg); }
}

@keyframes scroll-line {
  0% { transform: translateX(-110%); }
  55%, 100% { transform: translateX(220%); }
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: translateY(0); }
}

@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal-up linear both;
    animation-timeline: view();
    animation-range: entry 4% cover 27%;
  }
}

@media (max-width: 900px) {
  .site-nav { padding: 20px 18px; }
  .nav-links { gap: 14px; font-size: 9px; }
  .nav-links a:nth-child(1) { display: none; }

  .hero-video {
    object-position: 49% center;
  }

  .hero-title-stage {
    left: clamp(58px, 15vw, 132px);
    width: clamp(132px, 24vw, 218px);
  }
  .hero-caption { left: 18px; bottom: 22px; }
  .scroll-cue { right: 18px; bottom: 17px; }

  .intro-grid,
  .visual-detail,
  .poster-detail,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .intro-grid { gap: 48px; }
  .intro-grid > p { max-width: 100%; }
  .project-meta { grid-template-columns: 1fr; margin-top: 70px; }
  .project-meta div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .project-meta div:not(:first-child) { padding-left: 0; }
  .section-heading { gap: 24px; }
  .section-copy { max-width: 100%; }
  .visual-detail { gap: 70px; padding-inline: 0; }
  .portrait-visual { width: min(80%, 520px); margin-inline: auto; }
  .poster-detail { gap: 70px; padding-inline: 0; }
  .poster-copy { position: static; }
  .poster-sheet { width: min(82%, 560px); margin-inline: auto; }
  .postcard-grid { grid-template-columns: 1fr; gap: 60px; }
  .column-views { grid-template-columns: 1fr; }
  .column-view:first-child { grid-row: auto; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer div:last-child { text-align: left; }
}

@media (max-width: 560px) {
  .brand-mark { font-size: 13px; }
  .nav-links a:nth-child(4) { display: none; }
  .hero-caption { display: none; }
  .hero-title-stage {
    top: 49%;
    left: 9vw;
    width: min(37vw, 168px);
  }
  .intro-grid h1 { font-size: clamp(48px, 17vw, 64px); }
  .proposal-section { padding-inline: 18px; }
  .introduction { padding-inline: 18px; }
  .wide-image img { aspect-ratio: auto; }
  .section-heading h2 { font-size: 54px; }
  .site-footer { padding-inline: 18px; }
}

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

  .hero-video {
    display: none;
  }

  .hero {
    background: var(--green-dark) url("./hero/hero-poster.png") center / cover no-repeat;
  }
}
