@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500&family=Cormorant+Garamond:wght@300;400;500&family=Noto+Sans+SC:wght@300;400;500&family=Noto+Serif+SC:wght@200;300;400&family=Playfair+Display:wght@400;500&family=Shippori+Mincho:wght@400;500;600&family=Zen+Kaku+Gothic+New:wght@300;400;500&display=swap");

:root {
  --paper: #F9F8F6;
  --paper-warm: #FAF9F4;
  --ink: #2C2C2C;
  --ink-soft: #57514B;
  --muted: #7F7A72;
  --line: rgba(44, 44, 44, .12);
  --wood: #D4C3B3;
  --moss: #7E9279;
  --stone: #A8A6A1;
  --clay: #9C6E55;
  --night: #1F2420;
  --white: #FFFDF9;
  --shadow: 0 18px 48px rgba(43, 38, 32, .08);
  --font-heading: "Shippori Mincho", "Noto Serif SC", "Noto Serif JP", "Yu Mincho", "Songti SC", "STSong", "SimSun", serif;
  --font-body: "Zen Kaku Gothic New", "Noto Sans SC", "Noto Sans JP", "Yu Gothic", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --font-latin: "Cormorant Garamond", "Playfair Display", Optima, "Times New Roman", serif;
  --font-caps: "Cinzel", "Cormorant Garamond", Optima, serif;
}

* { box-sizing: border-box; }
html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-top: 74px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.72;
  letter-spacing: 0;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
figure { margin: 0; }
img, video { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button { color: inherit; }

.serif {
  font-family: var(--font-heading);
  font-weight: 300;
  letter-spacing: .01em;
}
.site-shell {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  overflow-x: clip;
}
.site-container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(900px, calc(100% - 40px)); margin: 0 auto; }
.site-shell .site-container {
  width: min(1180px, calc(100% - 40px));
  max-width: none;
  margin-inline: auto;
}
.site-shell .narrow {
  width: min(980px, calc(100% - 40px));
  max-width: none;
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  width: 100%;
  background: rgba(249, 248, 246, .86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.navbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  display: inline-grid;
  gap: 8px;
  min-width: 0;
  line-height: 1.2;
}
.brand-name {
  color: var(--ink);
  font-size: 1.34rem;
  line-height: 1.18;
}
.brand-title {
  color: var(--muted);
  font-family: var(--font-caps);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-link {
  position: relative;
  padding: 8px 0;
  color: var(--ink-soft);
  font-size: .92rem;
  font-weight: 300;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1px;
  background: var(--moss);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--ink);
  content: "";
  transition: transform .25s ease;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(5px); }
.project-back {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(156, 110, 85, .28);
  border-radius: 50%;
  color: #6B4634;
  background: rgba(245, 237, 229, .9);
  box-shadow: 0 8px 22px rgba(43, 38, 32, .06);
  backdrop-filter: blur(10px);
  line-height: 1;
}
.project-back svg {
  width: 24px;
  height: 24px;
}

.hero-home {
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  background: var(--night);
}
.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-image) center/cover no-repeat;
  opacity: .82;
  transform: scale(1.02);
}
.hero-home::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(31, 36, 32, .78), rgba(31, 36, 32, .32) 52%, rgba(31, 36, 32, .08));
}
.hero-home .site-container {
  position: relative;
  z-index: 1;
  padding: 120px 0 70px;
  color: var(--white);
}
.hero-kicker {
  margin: 0 0 16px;
  color: rgba(255, 253, 249, .74);
  font-family: var(--font-caps);
  font-size: .9rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-title { max-width: 760px; margin: 0; font-size: 4.4rem; line-height: 1.04; }
.hero-title,
.project-hero-title,
.page-title,
.section-title,
.flow-heading {
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.hero-copy { max-width: 700px; margin: 26px 0 0; color: rgba(255, 253, 249, .86); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 300;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.button:hover { transform: translateY(-2px); border-color: var(--moss); }
.button.dark { background: var(--night); color: var(--white); border-color: rgba(255, 255, 255, .18); }
.button.ghost { background: rgba(255,255,255,.09); color: var(--white); border-color: rgba(255,255,255,.28); }

.section { padding: 88px 0; border-bottom: 1px solid var(--line); }
.section.compact { padding: 20px 0; }
.section-header { display: grid; grid-template-columns: .72fr 1.28fr; gap: 54px; align-items: end; margin-bottom: 38px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--moss);
  font-family: var(--font-caps);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.section-title { margin: 0; font-size: 2.45rem; line-height: 1.18; }
.section-copy { margin: 0; color: var(--ink-soft); font-size: 1rem; }

.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 28px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong {
  display: block;
  font-family: var(--font-latin);
  font-size: 2.16rem;
  line-height: 1;
  font-weight: 300;
}
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: .86rem; }

.project-grid { column-count: 2; column-gap: 34px; }
.project-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 38px;
  break-inside: avoid;
}
.project-link { display: grid; gap: 16px; }
.project-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: #EAE5DD;
}
.project-media.tall { aspect-ratio: 3 / 4; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.project-media::after {
  content: "View";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--clay);
  background: rgba(250, 249, 244, .42);
  opacity: 0;
  transition: opacity .45s ease;
}
.project-media::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: rgba(250, 249, 244, .58);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .45s ease;
}
.project-media::after { z-index: 2; background: transparent; }
.project-link:hover img { transform: scale(1.035); }
.project-link:hover .project-media::before,
.project-link:hover .project-media::after { opacity: 1; }
.project-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-family: var(--font-latin);
  font-size: .96rem;
  font-weight: 300;
  line-height: 1.35;
}
.project-name { margin: 0; font-size: 1.32rem; line-height: 1.35; }
.project-desc { margin: 8px 0 0; color: var(--ink-soft); font-size: .94rem; }

.page-hero { padding: 92px 0 52px; border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 58px; align-items: end; }
.page-title { margin: 0; font-size: 3.4rem; line-height: 1.08; }
.page-copy { margin: 22px 0 0; color: var(--ink-soft); font-size: 1.04rem; }
.page-image { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #EAE5DD; }
.page-image img { width: 100%; height: 100%; object-fit: cover; }

.works-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter-chip {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 13px;
  background: transparent;
  cursor: pointer;
  font-weight: 300;
}
.filter-chip[aria-pressed="true"] { background: var(--night); color: var(--white); border-color: var(--night); }
.archive-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: .92rem;
  font-weight: 300;
}
.archive-table th,
.archive-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
  word-break: keep-all;
}
.archive-table th { color: var(--muted); font-weight: 400; }
.archive-table td:nth-child(3),
.archive-table td:nth-child(4) {
  font-family: var(--font-latin);
  font-size: 1rem;
}
.archive-table a { color: var(--moss); }
.table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}

.project-hero {
  min-height: 50vh;
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  background: var(--night);
}
.project-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--project-image) center/cover no-repeat;
  opacity: .84;
}
.project-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(31,36,32,.68), rgba(31,36,32,.06) 55%);
}
.project-hero-inner { position: relative; z-index: 1; padding: 120px 0 64px; color: var(--white); }
.project-hero-title { max-width: 850px; margin: 0; font-size: 4rem; line-height: 1.04; }
.project-hero-copy { max-width: 660px; margin: 20px 0 0; color: rgba(255, 253, 249, .84); }
.detail-layout { display: grid; grid-template-columns: 1fr; gap: 52px; align-items: start; }
.project-aside { position: static; }
.info-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.info-row { display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.info-row span:first-child { color: var(--muted); font-size: .82rem; }
.info-row strong { font-weight: 300; }
.materials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.materials span {
  border: 1px solid rgba(156, 110, 85, .28);
  border-radius: 8px;
  padding: 7px 12px;
  color: #6B4634;
  background: rgba(212, 195, 179, .42);
  box-shadow: 0 8px 22px rgba(43, 38, 32, .06);
  font-size: .84rem;
  font-weight: 300;
}
.story { display: grid; gap: 22px; }
.story h2 { margin: 14px 0 0; font-size: 1.78rem; line-height: 1.24; }
.story p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }
.project-flow { margin-top: 48px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; align-items: start; }
.flow-heading { grid-column: 1 / span 12; margin: 34px 0 0; font-size: 1.72rem; line-height: 1.24; }
.flow-text { grid-column: 2 / span 9; margin: 0; color: var(--ink-soft); font-size: 1rem; }
.flow-media { grid-column: span 6; overflow: hidden; border-radius: 8px; background: #EAE5DD; }
.flow-media.wide { grid-column: span 12; }
.flow-media.narrow { grid-column: span 5; }
.flow-media img, .flow-media video { width: 100%; height: 100%; object-fit: cover; }
.flow-media img { aspect-ratio: 4 / 3; }
.flow-media.image img { cursor: zoom-in; transition: transform .55s ease; }
.flow-media.image:hover img { transform: scale(1.025); }
.flow-media.video { background: #171717; }
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(20, 22, 20, .82);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}
.image-lightbox.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.image-lightbox img {
  max-width: min(1120px, 92vw);
  max-height: 86vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}
.image-lightbox-close {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 253, 249, .42);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 253, 249, .12);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
body.lightbox-open { overflow: hidden; }
.gallery { margin-top: 44px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.gallery-item { grid-column: span 6; overflow: hidden; border-radius: 8px; background: #EAE5DD; }
.gallery-item:nth-child(6n + 1), .gallery-item:nth-child(7n) { grid-column: span 12; }
.gallery-item:nth-child(5n + 2) { grid-column: span 5; }
.gallery-item:nth-child(5n + 3) { grid-column: span 7; }
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; }
.gallery-item img { aspect-ratio: 4 / 3; }
.gallery-item.video { grid-column: span 12; background: #171717; }
.next-project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border-top: 1px solid var(--line);
}
.next-copy { padding: 58px min(8vw, 86px); display: grid; align-content: center; gap: 14px; }
.next-image { min-height: 360px; overflow: hidden; }
.next-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); }

.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 66px; align-items: start; }
.portrait { border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 5; background: #EAE5DD; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.value-card { border-top: 1px solid var(--line); padding-top: 18px; }
.value-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 300;
}
.value-card p { margin: 0; color: var(--ink-soft); font-size: .94rem; }

.contact-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 70px; align-items: start; }
.contact-card { border-top: 1px solid var(--line); padding-top: 20px; }
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { color: var(--muted); font-size: .86rem; }
.field input, .field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
  padding: 12px 0;
  color: var(--ink);
  outline: none;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--moss); }
.error { min-height: 18px; color: #9D3E32; font-size: .8rem; }
.form-status { min-height: 24px; color: var(--moss); }

.site-footer { padding: 44px 0; color: var(--muted); }
.site-footer span:last-child {
  font-family: var(--font-latin);
  font-size: 1.04rem;
}
.footer-grid { display: flex; justify-content: space-between; gap: 22px; border-top: 1px solid var(--line); padding-top: 28px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.cursor-dot {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(212, 195, 179, .86);
  transform: translate3d(-50%, -50%, 0);
  mix-blend-mode: multiply;
  transition: width .25s ease, height .25s ease, background .25s ease;
}
.cursor-dot.active { width: 54px; height: 54px; background: rgba(212, 195, 179, .42); }

@media (max-width: 980px) {
  body { padding-top: 78px; }
  .site-shell .site-header .site-container {
    width: 100%;
    max-width: none;
    padding-inline: 24px;
  }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: 78px 0 auto 0;
    display: grid;
    gap: 0;
    width: 100%;
    max-width: 100%;
    padding: 16px 24px 24px;
    background: rgba(249, 248, 246, .98);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(calc(-100% - 90px));
    transition: transform .28s ease, opacity .2s ease, visibility 0s linear .28s;
  }
  body.menu-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
    transition: transform .28s ease, opacity .2s ease;
  }
  .nav-link {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    text-align: center;
  }
  .nav-link::after {
    transform-origin: center;
  }
  body[data-page="project"] .project-back {
    position: fixed;
    top: 100px;
    left: 15px;
    z-index: 60;
    display: inline-flex;
  }
  .hero-title, .project-hero-title {
    max-width: min(100%, 10em);
    font-size: 3.2rem;
    line-break: anywhere;
    word-break: break-all;
  }
  .page-title { font-size: 2.7rem; }
  .section-header, .page-hero-grid, .detail-layout, .about-grid, .contact-layout { grid-template-columns: 1fr; gap: 34px; }
  .project-aside { position: static; }
  .info-list { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .values-grid { grid-template-columns: 1fr; }
  .next-project { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { padding-top: 86px; }
  .site-shell .site-container,
  .site-shell .narrow {
    width: 100%;
    max-width: none;
    padding-inline: 22px;
  }
  .site-shell .site-header .site-container { padding-inline: 22px; }
  .navbar {
    width: 100%;
    min-height: 86px;
    gap: 14px;
  }
  .brand-name { font-size: 1.5rem; }
  .brand-title { margin-top: 2px; font-size: .9rem; }
  .nav-toggle {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
  }
  .nav-toggle span,
  .nav-toggle span::before,
  .nav-toggle span::after { width: 24px; }
  .nav-links { inset: 86px 0 auto 0; padding-inline: 22px; }
  /* .hero-home { min-height: 60vh; } */
  .hero-home .site-container,
  .project-hero-inner {
    padding-top: 78px;
    padding-right: 22px;
    padding-bottom: 46px;
    padding-left: 22px;
  }
  .hero-title, .project-hero-title {
    max-width: 100%;
    font-size: 2.32rem;
    line-break: anywhere;
    word-break: break-all;
  }
  .page-title,
  .section-title,
  .flow-heading {
    line-break: anywhere;
    word-break: break-all;
  }
  .hero-kicker {
    max-width: 100%;
    font-size: .78rem;
    letter-spacing: .1em;
    overflow-wrap: anywhere;
  }
  .eyebrow,
  .brand-title {
    letter-spacing: .12em;
  }
  .hero-copy { font-size: .98rem; }
  .page-title { font-size: 2.18rem; }
  .page-hero { padding: 62px 0 42px; }
  .section { padding: 62px 0; }
  .section-title { font-size: 1.88rem; }
  .info-list { grid-template-columns: repeat(2, 1fr); }
  .info-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 14px;
    border-right: 1px solid var(--line);
  }
  .info-row:nth-child(2n) { border-right: 0; }
  .info-row span:first-child { font-size: .78rem; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .project-grid {
    column-count: 1;
    column-gap: 0;
  }
  .project-card,
  .project-card:nth-child(3n),
  .project-card:nth-child(3n + 2),
  .project-card:nth-child(4n) {
    margin-bottom: 42px;
  }
  .project-media {
    width: calc(100% + 18px);
    margin-left: -9px;
  }
  .gallery { grid-template-columns: 1fr; gap: 16px; }
  .gallery-item, .gallery-item:nth-child(6n + 1), .gallery-item:nth-child(7n), .gallery-item:nth-child(5n + 2), .gallery-item:nth-child(5n + 3) { grid-column: auto; }
  .project-flow { grid-template-columns: 1fr; gap: 16px; }
  .flow-heading, .flow-text, .flow-media, .flow-media.wide, .flow-media.narrow { grid-column: auto; }
  .footer-grid { display: grid; }
}

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

@media (pointer: coarse) {
  .cursor-dot { display: none; }
}
