@charset "UTF-8";

:root {
  --paper: #f2eee5;
  --paper-deep: #e8e1d4;
  --ink: #171714;
  --muted: #716e66;
  --line: rgba(23, 23, 20, 0.19);
  --red: #c63d2f;
  --red-deep: #8e2c23;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Times New Roman", serif;
  --sans: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: min(1320px, calc(100vw - 96px));
}

html[data-theme="dark"] {
  --paper: #171714;
  --paper-deep: #23231f;
  --ink: #eee9de;
  --muted: #a6a198;
  --line: rgba(238, 233, 222, 0.19);
  --red: #e65a49;
  --red-deep: #f37a69;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: color 0.4s ease, background-color 0.4s ease;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
::selection { color: #fff9ef; background: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 5px; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  color: #fff;
  background: var(--red);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: 88px;
  padding: 0 48px;
  border-bottom: 1px solid transparent;
  transition: height 0.35s var(--ease), background 0.35s ease, border-color 0.35s ease;
}
.site-header.is-scrolled {
  height: 68px;
  border-color: var(--line);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(16px);
}
.wordmark { display: inline-flex; align-items: center; gap: 11px; width: max-content; }
.wordmark__stamp {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: var(--paper);
  background: var(--red);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1;
}
.wordmark__text { font-size: 13px; font-weight: 700; letter-spacing: 0.19em; }
.site-nav { display: flex; gap: 42px; }
.site-nav a { position: relative; font-size: 13px; letter-spacing: 0.1em; }
.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.site-nav a:hover::after,
.site-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; justify-content: flex-end; gap: 8px; }
.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, transform 0.25s;
}
.icon-button:hover { color: var(--red); border-color: var(--red); transform: rotate(8deg); }
.theme-toggle svg { width: 18px; height: 18px; stroke-width: 1.5; }
.menu-toggle { display: none; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.75fr);
  align-items: center;
  min-height: 100svh;
  padding: 140px max(48px, calc((100vw - 1320px) / 2)) 86px;
  overflow: hidden;
}
.hero::before {
  position: absolute;
  top: 0;
  left: 11%;
  width: 1px;
  height: 100%;
  content: "";
  background: linear-gradient(to bottom, transparent, var(--line) 16%, var(--line) 84%, transparent);
}
.hero__index {
  position: absolute;
  top: 50%;
  left: 4.7%;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.22em;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
}
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 33px; color: var(--muted); font-size: 12px; letter-spacing: 0.28em; }
.eyebrow span { width: 30px; height: 1px; background: var(--red); }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(58px, 7.6vw, 116px); font-weight: 400; letter-spacing: -0.08em; line-height: 0.98; }
.hero__name { display: block; white-space: nowrap; }
.hero__dot { color: var(--red); }
.hero__intro { margin: 43px 0 0; color: var(--muted); font-family: var(--serif); font-size: clamp(19px, 2vw, 26px); line-height: 1.75; }
.hero__actions { display: flex; align-items: center; gap: 34px; margin-top: 46px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 32px; padding: 17px 20px 17px 24px; font-size: 13px; letter-spacing: 0.05em; transition: transform 0.25s var(--ease), background 0.25s; }
.button svg { width: 20px; stroke-width: 1.6; transition: transform 0.3s var(--ease); }
.button:hover { transform: translateY(-3px); }
.button:hover svg { transform: translateX(4px); }
.button--primary { color: #fbf6ec; background: var(--ink); }
html[data-theme="dark"] .button--primary { color: #171714; }
.text-link { position: relative; color: var(--muted); font-size: 13px; }
.text-link span { color: var(--red); }
.text-link::after { position: absolute; right: 0; bottom: -6px; left: 0; height: 1px; content: ""; background: var(--line); }

.hero__art { position: relative; justify-self: end; width: min(37vw, 550px); aspect-ratio: 1; }
.orbit { position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.orbit--one { inset: 4%; animation: rotate 34s linear infinite; }
.orbit--one::before { position: absolute; top: 15%; right: 6%; width: 12px; height: 12px; border-radius: 50%; content: ""; background: var(--red); }
.orbit--two { inset: 19%; border-style: dashed; opacity: 0.6; animation: rotate-reverse 24s linear infinite; }
.hero__monogram { position: absolute; inset: 29%; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--serif); font-size: clamp(42px, 5vw, 76px); }
.hero__monogram i { width: 1px; height: 37%; background: var(--red); transform: rotate(22deg); }
.hero__art > p { position: absolute; top: 12%; left: 2%; margin: 0; font-family: var(--serif); font-size: 14px; letter-spacing: 0.18em; line-height: 1.9; }
.hero__seal { position: absolute; right: 1%; bottom: 16%; display: grid; place-items: center; width: 42px; height: 54px; color: #fff9ef; border: 1px solid var(--red-deep); background: var(--red); font-family: var(--serif); font-size: 15px; line-height: 1.3; transform: rotate(4deg); }
.hero__scroll { position: absolute; right: 48px; bottom: 32px; display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: 10px; letter-spacing: 0.2em; writing-mode: vertical-rl; }
.hero__scroll i { width: 1px; height: 50px; overflow: hidden; background: var(--line); }
.hero__scroll i::after { display: block; width: 1px; height: 45%; content: ""; background: var(--red); animation: scroll-line 2.2s var(--ease) infinite; }

.section { padding: 140px max(48px, calc((100vw - 1320px) / 2)); }
.section-heading { display: grid; grid-template-columns: 90px 1fr auto; align-items: end; padding-bottom: 27px; border-bottom: 1px solid var(--line); }
.section-heading p { margin: 0; }
.section-number { color: var(--red); font-family: var(--serif); font-size: 14px; }
.section-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(36px, 4vw, 58px); font-weight: 400; letter-spacing: -0.06em; }
.section-en { color: var(--muted); font-size: 10px; letter-spacing: 0.26em; }

.about { background: var(--paper-deep); }
.about__layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 10vw; padding: 95px 7vw 20px; }
.about blockquote { margin: 0; font-family: var(--serif); font-size: clamp(31px, 3.7vw, 53px); line-height: 1.55; }
.about blockquote span { position: relative; color: var(--red); white-space: nowrap; }
.about blockquote span::after { position: absolute; right: 0; bottom: -5px; left: 0; height: 5px; content: ""; background: url("data:image/svg+xml,%3Csvg width='300' height='5' viewBox='0 0 300 5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3.5c69-3 155 1 298-2' stroke='%23c63d2f' fill='none'/%3E%3C/svg%3E") center / 100% 100%; }
.about__copy { padding-top: 10px; }
.about__copy > p { margin: 0 0 24px; color: var(--muted); font-size: 15px; line-height: 2; text-align: justify; }
.about__facts { margin: 50px 0 0; border-top: 1px solid var(--line); }
.about__facts div { display: grid; grid-template-columns: 110px 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.about__facts dt { color: var(--muted); }
.about__facts dd { margin: 0; }
.status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: #4d8e5d; box-shadow: 0 0 0 4px rgba(77, 142, 93, 0.13); }

.work-list { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 90px 38px; padding-top: 78px; }
.project--feature { grid-row: span 2; }
.project a { display: block; }
.project__visual { position: relative; min-height: 330px; overflow: hidden; transition: transform 0.6s var(--ease); }
.project--feature .project__visual { min-height: 760px; }
.project:hover .project__visual { transform: scale(0.985); }
.project__visual--garden { display: grid; place-items: center; color: #f3eddf; background: #242925; }
.project__visual--garden::after { position: absolute; inset: 18px; border: 1px solid rgba(243,237,223,0.25); content: ""; }
.project__year { position: absolute; top: 36px; right: 39px; font-size: 11px; letter-spacing: 0.2em; }
.garden-lines { position: absolute; inset: 15%; display: flex; align-items: flex-end; justify-content: center; gap: 10%; }
.garden-lines i { width: 1px; background: rgba(243,237,223,0.43); transform-origin: bottom; }
.garden-lines i:nth-child(1) { height: 38%; transform: rotate(-19deg); }
.garden-lines i:nth-child(2) { height: 62%; transform: rotate(12deg); }
.garden-lines i:nth-child(3) { height: 80%; background: var(--red); transform: rotate(-4deg); }
.garden-lines i:nth-child(4) { height: 52%; transform: rotate(17deg); }
.garden-lines i:nth-child(5) { height: 33%; transform: rotate(-12deg); }
.project__visual--garden p { position: relative; z-index: 1; margin: 0; font-family: var(--serif); font-size: clamp(46px, 6vw, 84px); line-height: 0.83; text-align: center; mix-blend-mode: difference; }
.project__visual--archive { min-height: 335px; background: #cf4a38; }
.archive-card { position: absolute; display: grid; place-items: center; width: 35%; aspect-ratio: 0.72; border: 1px solid rgba(255,249,239,0.7); color: #fff9ef; font-family: var(--serif); text-align: center; }
.archive-card--one { top: 17%; left: 22%; font-family: var(--sans); font-size: 11px; letter-spacing: 0.18em; line-height: 1.8; transform: rotate(-12deg); }
.archive-card--two { top: 10%; left: 46%; background: #eee7da; color: #1b1b18; font-size: 29px; line-height: 1.15; transform: rotate(9deg); }
.archive-no { position: absolute; right: 22px; bottom: 19px; color: rgba(255,249,239,0.75); font-size: 9px; letter-spacing: 0.18em; }
.project__visual--lab { min-height: 335px; color: #191916; background: #d7d0be; }
.lab-circle { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 145px; height: 145px; border: 1px solid #191916; border-radius: 50%; transform: translate(-50%, -50%); }
.lab-circle::before, .lab-circle::after { position: absolute; content: ""; background: #191916; }
.lab-circle::before { width: 220%; height: 1px; }
.lab-circle::after { width: 1px; height: 220%; }
.lab-circle span { font-size: 31px; font-weight: 200; }
.project__visual--lab p { position: absolute; top: 22px; left: 24px; z-index: 1; margin: 0; font-family: var(--serif); font-size: 25px; line-height: 0.95; }
.lab-code { position: absolute; right: 19px; bottom: 17px; font-size: 9px; letter-spacing: 0.15em; }
.project__meta { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; }
.project__meta p { margin: 0 0 9px; color: var(--muted); font-size: 11px; letter-spacing: 0.08em; }
.project__meta h3 { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 400; }
.project__arrow { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid var(--line); border-radius: 50%; transition: color 0.25s, background 0.25s, transform 0.35s var(--ease); }
.project:hover .project__arrow { color: #fff; border-color: var(--red); background: var(--red); transform: rotate(45deg); }
.work__note { max-width: 460px; margin: 85px 0 0 auto; padding-left: 22px; color: var(--muted); border-left: 2px solid var(--red); font-size: 12px; line-height: 1.8; }

.notes { background: var(--paper-deep); }
.notes-list { margin-top: 67px; }
.note { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 30px; min-height: 124px; border-bottom: 1px solid var(--line); transition: padding 0.35s var(--ease), color 0.25s; }
.note:first-child { border-top: 1px solid var(--line); }
.note:hover { padding-right: 18px; padding-left: 18px; color: var(--red); }
.note time { color: var(--muted); font-family: var(--serif); font-size: 16px; }
.note p { margin: 0 0 9px; color: var(--red); font-size: 10px; letter-spacing: 0.18em; }
.note h3 { margin: 0; font-family: var(--serif); font-size: clamp(21px, 2.5vw, 31px); font-weight: 400; }
.note > span { color: var(--muted); font-size: 11px; }

.now { position: relative; color: #eee9de; background: #1d201d; overflow: hidden; }
.now::after { position: absolute; right: -10vw; bottom: -28vw; width: 55vw; height: 55vw; border: 1px solid rgba(238,233,222,0.1); border-radius: 50%; content: ""; box-shadow: 0 0 0 8vw rgba(238,233,222,0.025), 0 0 0 17vw rgba(238,233,222,0.02); }
.section-heading--light { border-color: rgba(238,233,222,0.2); }
.section-heading--light .section-en { color: #9a9b94; }
.now__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 0.8fr; gap: 12vw; align-items: start; padding: 95px 7vw 20px; }
.now__lead { margin: 0; font-family: var(--serif); font-size: clamp(37px, 5vw, 67px); line-height: 1.5; }
.now__lead span { color: #e35a48; }
.now__list { margin: 0; padding: 0; list-style: none; }
.now__list li { display: grid; grid-template-columns: 95px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid rgba(238,233,222,0.17); }
.now__list li:first-child { border-top: 1px solid rgba(238,233,222,0.17); }
.now__list span { color: #999b94; font-size: 11px; }
.now__list p { margin: 0; font-size: 13px; line-height: 1.65; }

.site-footer { padding: 130px max(48px, calc((100vw - 1320px) / 2)) 35px; background: var(--red); color: #fff8ee; }
.footer__top p { margin: 0 0 15px; font-size: 12px; letter-spacing: 0.12em; }
.footer__top h2 { margin: 0; font-family: var(--serif); font-size: clamp(65px, 11vw, 156px); font-weight: 400; letter-spacing: -0.08em; line-height: 1; }
.footer__top h2 span { color: #3c1915; }
.footer__mail { display: inline-block; margin-top: 45px; padding-bottom: 7px; border-bottom: 1px solid rgba(255,248,238,0.58); font-family: var(--serif); font-size: clamp(20px, 2.4vw, 31px); }
.footer__bottom { display: grid; grid-template-columns: 1fr 1fr auto; margin-top: 120px; padding-top: 22px; border-top: 1px solid rgba(255,248,238,0.31); font-size: 10px; letter-spacing: 0.12em; }
.footer__bottom p { margin: 0; }
.footer__bottom p:nth-child(2) { text-align: center; }

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes rotate-reverse { to { transform: rotate(-360deg); } }
@keyframes scroll-line { 0% { transform: translateY(-110%); } 55%, 100% { transform: translateY(230%); } }

@media (max-width: 980px) {
  :root { --container: calc(100vw - 48px); }
  .site-header { height: 72px; padding: 0 24px; }
  .site-header.is-scrolled { height: 62px; }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: var(--paper);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
  }
  .site-nav.is-open { opacity: 1; pointer-events: auto; }
  .site-nav a { font-family: var(--serif); font-size: 34px; }
  .menu-toggle { display: flex; flex-direction: column; gap: 6px; }
  .menu-toggle span { display: block; width: 15px; height: 1px; background: currentColor; transition: transform 0.3s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .hero { grid-template-columns: 1fr 0.72fr; min-height: 900px; padding: 130px 40px 90px 12vw; }
  .hero__art { width: 39vw; }
  .hero__scroll { display: none; }
  .section { padding: 110px 32px; }
  .about__layout, .now__grid { gap: 8vw; padding-right: 2vw; padding-left: 2vw; }
  .work-list { gap: 70px 26px; }
  .project--feature .project__visual { min-height: 650px; }
}

@media (max-width: 720px) {
  .hero { display: block; min-height: 100svh; padding: 125px 24px 80px; }
  .hero::before { left: auto; right: 22px; }
  .hero__index { display: none; }
  .hero h1 { font-size: clamp(56px, 19vw, 84px); }
  .hero__intro { margin-top: 32px; font-size: 18px; }
  .hero__actions { align-items: flex-start; flex-direction: column; gap: 28px; margin-top: 36px; }
  .hero__art { position: absolute; right: -23vw; bottom: 2vh; width: 70vw; opacity: 0.32; }
  .section { padding: 85px 22px; }
  .section-heading { grid-template-columns: 45px 1fr; padding-bottom: 19px; }
  .section-heading h2 { font-size: 37px; }
  .section-en { display: none; }
  .about__layout, .now__grid { grid-template-columns: 1fr; gap: 55px; padding: 60px 0 0; }
  .about blockquote { font-size: 29px; }
  .about__copy > p { font-size: 14px; }
  .about__facts div { grid-template-columns: 82px 1fr; }
  .work-list { grid-template-columns: 1fr; gap: 65px; padding-top: 55px; }
  .project--feature { grid-row: auto; }
  .project--feature .project__visual { min-height: 520px; }
  .project__visual { min-height: 300px; }
  .work__note { margin-top: 65px; }
  .notes-list { margin-top: 48px; }
  .note { grid-template-columns: 58px 1fr; gap: 14px; min-height: 115px; }
  .note > span { display: none; }
  .note h3 { font-size: 20px; line-height: 1.45; }
  .note:hover { padding-right: 8px; padding-left: 8px; }
  .now__lead { font-size: 39px; }
  .now__list li { grid-template-columns: 80px 1fr; }
  .site-footer { padding: 90px 22px 28px; }
  .footer__top h2 { font-size: clamp(65px, 25vw, 104px); }
  .footer__mail { font-size: 20px; }
  .footer__bottom { grid-template-columns: 1fr auto; gap: 15px; margin-top: 90px; }
  .footer__bottom p:nth-child(2) { display: none; }
}

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