:root{
  --paper:#f3eee2;
  --ink:#25231f;
  --muted:#77736a;
  --rule:rgba(37,35,31,.23);
  --rule-width:1px;
  --rail:76px;
  --rail-content-left:26px;
  --pad:clamp(28px,3.8vw,64px);
  --body-size:16px;
  --base-line:1.55;
  --section-gap:150px;
  --mobile-hero-ratio:3/5;
  --desktop-hero-height:78svh;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  overflow-x:hidden;
  background:var(--paper);
  color:var(--ink);
  font-family:"DM Sans","Noto Sans JP",sans-serif;
  font-size:var(--body-size);
  line-height:var(--base-line);
}
body.menu-open,body.menu-closing{overflow:hidden}
body::before{
  content:"";
  position:fixed;
  z-index:40;
  inset:0 auto 0 var(--rail);
  width:var(--rule-width);
  background:var(--rule);
  pointer-events:none;
}
a{color:inherit;text-decoration:none}
p,h1,h2,h3,figure,dl,dd{margin:0}
img{display:block;max-width:100%}
button{font:inherit;color:inherit}
[hidden]{display:none!important}
a:focus-visible,button:focus-visible{outline:1px solid currentColor;outline-offset:5px}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.site-head,main,footer{margin-left:var(--rail)}
main{padding:0 var(--pad)}

/* Header / language */
.site-head{
  height:92px;
  padding:0 var(--pad);
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.logo{display:block;width:clamp(170px,18vw,260px);line-height:0}
.logo img{width:100%;height:auto;object-fit:contain}
.languages{
  position:fixed;
  z-index:90;
  left:var(--rail-content-left);
  bottom:112px;
  width:calc(var(--rail) - var(--rail-content-left));
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:0;
  font-size:.72rem;
  letter-spacing:.04em;
}
.languages a{
  width:100%;
  min-height:34px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  color:var(--muted);
  padding:0;
}
.languages a[aria-current]{color:var(--ink);text-decoration:underline;text-underline-offset:5px}

/* INDEX menu */
.menu-toggle{
  position:fixed;
  z-index:70;
  left:0;
  top:50%;
  width:var(--rail);
  height:84px;
  border:0;
  background:transparent;
  transform:translateY(-50%);
  cursor:pointer;
  display:grid;
  place-content:center;
  gap:7px;
  padding:0;
}
.menu-toggle span{display:block;width:24px;height:1px;background:var(--ink);transition:transform .3s}
.menu-open .menu-toggle span:first-child{transform:translateY(4px) rotate(45deg)}
.menu-open .menu-toggle span:last-child{transform:translateY(-4px) rotate(-45deg)}
.menu-panel{
  position:fixed;
  z-index:60;
  top:0;
  bottom:0;
  left:var(--rail);
  width:min(470px,calc(100% - var(--rail)));
  overflow-y:auto;
  background:var(--ink);
  color:var(--paper);
  padding:48px 54px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  transform:translateX(-100%);
  transition:transform .4s cubic-bezier(.76,0,.24,1);
}
.menu-open .menu-panel{transform:none}
.menu-closing .menu-panel{transform:translateX(-100%)}
.menu-code{position:absolute;top:48px;font-size:.7rem;color:#aaa69b;letter-spacing:.04em}
.menu-panel nav{border-top:var(--rule-width) solid rgba(243,238,226,.25)}
.menu-panel nav a{
  min-height:56px;
  border-bottom:var(--rule-width) solid rgba(243,238,226,.25);
  display:grid;
  grid-template-columns:40px 1fr;
  align-items:center;
  font-size:1rem;
}
.menu-panel nav span{font-size:.7rem;color:#aaa69b;letter-spacing:.04em}


/* Fixed external links in the left rail. */
.rail-external{
  position:fixed;
  z-index:90;
  left:var(--rail-content-left);
  bottom:18px;
  width:calc(var(--rail) - var(--rail-content-left));
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
  padding-left:0;
}
.rail-external a{
  width:24px;
  height:34px;
  display:grid;
  place-items:start;
  align-items:center;
  color:var(--muted);
  transition:color .2s ease,opacity .2s ease;
}
.rail-external a:hover{color:var(--ink)}
.rail-external svg{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.35;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.rail-external .icon-fill{fill:currentColor;stroke:none}

/* Shared labels / sections */
.section-code{font-size:.72rem;letter-spacing:.05em;font-weight:400}
.section-heading{
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top:var(--rule-width) solid var(--rule);
  margin-bottom:24px;
  min-height:48px;
}
.section-heading h2,.works-index h1,.news-index h1{font-weight:400;font-size:.72rem;letter-spacing:.05em}
.all-works{display:block;text-align:right;font-size:.82rem;margin-top:30px;padding:12px 0}

/* HOME hero: frame stays fixed, content switches inside. */
.featured{position:relative}
.featured .hero-image{
  position:relative;
  height:var(--desktop-hero-height);
  min-height:520px;
  border:0;
  overflow:hidden;
}
.featured-slide{
  display:block;
  position:absolute;
  inset:0;
  opacity:0;
  transform:translateX(20px);
  pointer-events:none;
  z-index:1;
  transition:opacity .72s cubic-bezier(.22,.61,.36,1),transform .72s cubic-bezier(.22,.61,.36,1);
  will-change:opacity,transform;
}
.featured-slide figure{height:100%;width:100%}
.featured-slide img{width:100%;height:100%;object-fit:cover;filter:sepia(.035) saturate(.97)}
.featured-slide.is-active{opacity:1;transform:translateX(0);pointer-events:auto;z-index:2}
.featured-slide.is-leaving{opacity:0;transform:translateX(-20px);pointer-events:none;z-index:1}

/* Featured project text follows the same right-to-left fade-slide direction.
   The strip itself stays fixed; only the text cells move. */
.spec-main.is-text-out>*{animation:itiSpecOut .28s ease both}
.spec-main.is-text-in>*{animation:itiSpecIn .48s cubic-bezier(.22,.61,.36,1) both}
.spec-main.is-text-in>*:nth-child(2){animation-delay:.025s}
.spec-main.is-text-in>*:nth-child(3){animation-delay:.05s}
.spec-main.is-text-in>*:nth-child(4){animation-delay:.075s}
.spec-main.is-text-in>*:nth-child(5){animation-delay:.1s}
@keyframes itiSpecOut{to{opacity:0;transform:translateX(-14px)}}
@keyframes itiSpecIn{from{opacity:0;transform:translateX(14px)}to{opacity:1;transform:translateX(0)}}
.spec{
  min-height:62px;
  border-top:0;
  border-bottom:var(--rule-width) solid var(--rule);
  display:grid;
  align-items:center;
  font-size:.72rem;
  letter-spacing:.015em;
}
.spec-main{height:76px;grid-template-columns:56px 1.25fr 1fr .7fr 1.4fr;border-left:0;border-right:0}
.spec>*{
  min-width:0;
  min-height:38px;
  padding:11px 18px;
  border-left:var(--rule-width) solid var(--rule);
  display:flex;
  align-items:center;
  overflow-wrap:anywhere;
}
.spec>*:first-child{border-left:0;padding-left:12px}
.spec h1{font-size:1.08rem;font-weight:500;letter-spacing:-.03em}

/* HOME WORKS */
.home-works{margin:90px 0 var(--section-gap)}
.works-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:64px 36px}
.work-tile{min-width:0;display:block}
.work-tile figure{aspect-ratio:3/2;overflow:hidden}
.work-tile img{width:100%;height:100%;object-fit:cover;filter:sepia(.025) saturate(.98)}
.work-tile figcaption{display:none}
.tile-label{padding-top:12px;display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.tile-label h2{font-size:.86rem;font-weight:400}
.tile-label>span{font-size:.7rem;color:var(--muted);text-align:right}
.slide-controls{display:flex;justify-content:flex-end;align-items:center;gap:2px;min-height:44px}
.slide-controls button{background:none;border:0;min-width:42px;min-height:44px;cursor:pointer;padding:8px;font-size:.88rem}
.slide-controls button:disabled{opacity:.25;cursor:default}

/* HOME NEWS */
.home-news{margin:0 0 var(--section-gap)}
.news-list{border-top:var(--rule-width) solid var(--rule)}
.news-row{
  display:grid;
  grid-template-columns:120px minmax(0,1fr) minmax(100px,180px);
  gap:24px;
  align-items:baseline;
  min-height:54px;
  padding:14px 0;
  border-bottom:var(--rule-width) solid var(--rule);
}
.news-row time,.news-row span{font-size:.7rem;color:var(--muted)}
.news-row strong{font-size:.84rem;font-weight:400}
.news-row span{text-align:right}

/* ABOUT */
.about{
  border-top:var(--rule-width) solid var(--rule);
  padding:34px 0 var(--section-gap);
  display:grid;
  grid-template-columns:1fr 2fr;
  gap:50px;
}
.about>div:last-child{max-width:720px}
.about .about-bio{font-size:.96rem;line-height:1.9;letter-spacing:0}
.about dl{margin-top:72px;border-top:var(--rule-width) solid var(--rule)}
.about dl div{display:grid;grid-template-columns:110px 1fr;padding:11px 0;border-bottom:var(--rule-width) solid var(--rule)}
.about dt,.about dd{font-size:.72rem;font-weight:400;line-height:1.8;overflow-wrap:anywhere}
.about dt{color:var(--muted)}

/* WORKS index */
.works-index{padding-top:50px;padding-bottom:150px;min-height:75vh}
.works-index h1{margin-bottom:48px}

/* WORK detail */
.work-page{
  display:grid;
  grid-template-columns:minmax(220px,27%) minmax(0,1fr);
  gap:clamp(42px,6vw,110px);
  align-items:start;
  padding-bottom:clamp(100px,13vw,200px);
}
.work-aside{
  position:sticky;
  top:36px;
  min-height:calc(100svh - 128px);
  padding:clamp(48px,7vw,100px) 0 40px;
  display:flex;
  flex-direction:column;
}
.work-code,.work-next span{font-size:.72rem;letter-spacing:.04em;color:var(--muted)}
.work-aside h1{margin-top:clamp(36px,5vw,70px);font-size:clamp(2rem,3.5vw,4.5rem);font-weight:500;line-height:.95;letter-spacing:-.065em;overflow-wrap:anywhere}
.work-aside h1.title-size-small{font-size:clamp(1.5rem,2.35vw,3rem);letter-spacing:-.05em}
.work-aside h1.title-size-medium{font-size:clamp(1.8rem,3vw,3.8rem);letter-spacing:-.058em}
.work-aside h1.title-size-large{font-size:clamp(2.4rem,4.2vw,5.5rem);letter-spacing:-.07em}
.work-type{margin-top:15px;font-size:.8rem;color:var(--muted)}
.work-aside dl{margin-top:60px;border-top:var(--rule-width) solid var(--rule)}
.work-aside dl div{display:grid;grid-template-columns:82px minmax(0,1fr);gap:12px;padding:10px 0;border-bottom:var(--rule-width) solid var(--rule)}
.work-aside dt,.work-aside dd{font-size:.72rem;font-weight:400;line-height:1.55;overflow-wrap:anywhere}
.work-aside dt{color:var(--muted)}
.work-description{font-size:.84rem;line-height:1.9;margin-top:30px;overflow-wrap:anywhere}
.external-links{margin-top:16px;display:flex;flex-direction:column;align-items:flex-start}
.work-external{display:inline-flex;align-items:center;gap:12px;min-height:44px;font-size:.84rem;letter-spacing:.04em}
.work-external:hover{text-decoration:underline;text-underline-offset:5px}
.work-story{min-width:0}
.work-story figure{overflow:visible}
.work-story img{height:auto;object-fit:contain;width:100%;filter:sepia(.025) saturate(.98)}
.work-story .work-hero{aspect-ratio:4/3;overflow:hidden}
.work-story .work-hero img{height:100%;object-fit:cover}
.work-story .work-image{margin-top:clamp(24px,4vw,64px)}
.work-pair{margin:clamp(24px,4vw,64px) 0;display:grid;grid-template-columns:1fr 1fr;gap:clamp(16px,2.2vw,36px);align-items:start}
.work-pair figure{overflow:visible}
.work-story figcaption{font-size:.7rem;color:var(--muted);line-height:1.6;margin-top:10px}
.work-next{margin-top:clamp(90px,13vw,190px);padding:15px 0;border-top:var(--rule-width) solid var(--rule);border-bottom:var(--rule-width) solid var(--rule);display:flex;justify-content:space-between;align-items:baseline}
.work-next strong{font-size:.84rem;font-weight:400;letter-spacing:.01em}

/* NEWS index / detail */
.news-index{padding-top:50px;padding-bottom:150px;min-height:75vh}
.news-index h1{margin-bottom:48px}
.news-detail{padding-top:50px;padding-bottom:150px;max-width:1220px}
.news-head{display:grid;grid-template-columns:1fr 2fr;gap:50px;border-top:var(--rule-width) solid var(--rule);padding-top:28px}
.news-head h1{font-size:clamp(1.7rem,3vw,3.2rem);font-weight:400;line-height:1.15;letter-spacing:-.045em}
.news-meta{display:flex;gap:30px;margin-top:20px;font-size:.72rem;color:var(--muted)}
.news-body{width:min(780px,100%);margin:80px 0 0 auto}
.news-image{margin-bottom:48px}
.news-image img{width:100%;height:auto}
.news-copy{font-size:.94rem;line-height:2}
.news-copy p+p{margin-top:1.4em}
.news-external{display:inline-block;margin-top:38px;font-size:.82rem;text-decoration:underline;text-underline-offset:5px}

/* Generic pages added through WordPress */
.generic-page{padding-top:50px;padding-bottom:150px;min-height:75vh}
.generic-page>header{display:grid;grid-template-columns:1fr 2fr;gap:50px;border-top:var(--rule-width) solid var(--rule);padding-top:28px}
.generic-page h1{font-size:clamp(2rem,4vw,4.5rem);font-weight:400;letter-spacing:-.05em;line-height:1}
.page-content{width:min(760px,100%);margin:80px 0 0 auto;font-size:.94rem;line-height:1.9}
.page-content>*+*{margin-top:1.4em}
.page-content img{height:auto}


/* PHOTOGRAPHY page */
.photography-page{padding-top:50px;padding-bottom:150px;min-height:75vh}
.photography-head{
  border-top:var(--rule-width) solid var(--rule);
  padding-top:28px;
  margin-bottom:52px;
}
.photography-head h1{
  font-size:clamp(2rem,4vw,4.5rem);
  font-weight:400;
  letter-spacing:-.05em;
  line-height:1;
}
.photography-grid{
  columns:3 280px;
  column-gap:clamp(18px,2vw,32px);
}
.photography-item{
  break-inside:avoid;
  margin:0 0 clamp(18px,2vw,28px);
}
.photography-item img{
  width:100%;
  height:auto;
  display:block;
  filter:sepia(.02) saturate(.98);
}
.photography-item figcaption{
  margin-top:10px;
  font-size:.68rem;
  line-height:1.6;
  color:var(--muted);
}
.photography-note{
  width:min(760px,100%);
  margin:70px 0 0 auto;
  font-size:.92rem;
  line-height:1.9;
}
.photography-note>*+*{margin-top:1.4em}

footer{
  min-height:60px;
  padding:0 var(--pad);
  border-top:var(--rule-width) solid var(--rule);
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:.7rem;
  letter-spacing:.03em;
}

@media(max-height:820px) and (min-width:761px){
  .work-aside{
    position:sticky;
    top:20px;
    min-height:0;
    max-height:calc(100vh - 40px);
    padding:24px 0 28px;
    overflow-y:auto;
    scrollbar-width:none;
  }
  .work-aside::-webkit-scrollbar{display:none}
  .work-aside h1{margin-top:28px}
  .work-aside dl{margin-top:36px}
}

@media(max-width:760px){
  :root{--rail:48px;--pad:20px;--rail-content-left:15px}
  body::before{z-index:80}
  .site-head{height:70px}
  .logo{width:150px}
  .languages{
    left:var(--rail-content-left);
    bottom:calc(94px + env(safe-area-inset-bottom));
    width:calc(var(--rail) - var(--rail-content-left));
    align-items:flex-start;
    background:var(--paper);
    font-size:.7rem;
  }
  .rail-external{
    left:var(--rail-content-left);
    bottom:calc(8px + env(safe-area-inset-bottom));
    width:calc(var(--rail) - var(--rail-content-left));
    gap:0;
    padding-left:0;
  }
  .rail-external a{width:20px;height:36px;place-items:start;align-items:center}
  .rail-external svg{width:15px;height:15px}
  .languages a{min-height:38px;width:100%;font-size:.7rem;padding:0;justify-content:flex-start}
  .menu-toggle{z-index:100;top:4px;transform:none;height:62px;width:var(--rail)}
  .menu-toggle span{width:18px}
  .menu-panel{
    z-index:70;
    left:var(--rail);
    width:calc(100% - var(--rail));
    padding:42px 20px;
    transform:translateX(-100%);
  }
  .menu-code{top:42px}
  .menu-panel nav a{font-size:.98rem;min-height:54px}

  /* Taller mobile hero, no outer side borders on metadata strip. */
  .featured .hero-image{height:auto;min-height:0;aspect-ratio:var(--mobile-hero-ratio);border:0}
  .featured-slide picture{display:block;width:100%;height:100%}
  .featured-slide img{object-position:var(--sp-object-position, center center)}
  .featured .spec{height:54px;min-height:54px;border-top:0;border-left:0;border-right:0;border-bottom:var(--rule-width) solid var(--rule)}
  .spec-main{grid-template-columns:auto minmax(0,1fr) auto}
  .spec-main>*:nth-child(3),.spec-main>*:nth-child(5){display:none}
  .featured .spec>*{padding:10px 12px;font-size:.7rem;white-space:normal}
  .featured .spec>:first-child{padding-left:0;padding-right:14px;border-left:0}
  .featured .spec h1{font-size:.84rem}
  .featured .spec>:nth-child(2){border-left:var(--rule-width) solid var(--rule)}
  .featured .spec>:nth-child(4){border-left:var(--rule-width) solid var(--rule);padding-right:0;justify-content:flex-end;text-align:right}
  .featured .spec>:last-child{border-right:0}

  .home-works{margin:64px 0 105px}
  .section-heading{margin-bottom:18px}
  .slide-controls button{min-width:36px;padding:6px}
  .works-grid{grid-template-columns:minmax(0,1fr);gap:38px}
  .tile-label{flex-wrap:wrap;gap:4px 12px}
  .tile-label>span{text-align:left}

  .home-news{margin-bottom:105px}
  .news-row{grid-template-columns:82px minmax(0,1fr);gap:12px;padding:13px 0}
  .news-row span{grid-column:2;text-align:left;margin-top:-8px}

  .about{grid-template-columns:1fr;gap:32px;padding:28px 0 110px}
  .about .about-bio{font-size:.9rem;line-height:1.9}
  .about dl{margin-top:48px;border-top:var(--rule-width) solid var(--rule)}
  .about dl div{grid-template-columns:1fr;gap:7px;padding:13px 0}

  .works-index,.news-index{padding-top:30px;padding-bottom:100px}
  .works-index h1,.news-index h1{margin-bottom:34px}

  .work-page{display:block;padding-bottom:100px}
  .work-aside{position:static;min-height:0;padding:32px 0 48px}
  .work-aside h1{margin-top:34px;font-size:2.4rem}
  .work-aside h1.title-size-small{font-size:1.8rem}
  .work-aside h1.title-size-medium{font-size:2.1rem}
  .work-aside h1.title-size-large{font-size:2.8rem}
  .work-aside dl{margin-top:40px}
  .work-aside dl div{grid-template-columns:74px minmax(0,1fr)}
  .work-story .work-hero{aspect-ratio:4/5}
  .work-story .work-pair{grid-template-columns:minmax(0,1fr);gap:24px}
  .work-story .work-pair figure:nth-child(2){margin-top:0}
  .work-next{margin-top:100px}

  .news-detail{padding-top:30px;padding-bottom:100px}
  .news-head{grid-template-columns:1fr;gap:28px;padding-top:20px}
  .news-head h1{font-size:1.8rem}
  .news-body{margin-top:54px}
  .news-image{margin-bottom:34px}
  .news-copy{font-size:.9rem;line-height:1.95}

  .generic-page{padding-top:30px;padding-bottom:100px}
  .generic-page>header{grid-template-columns:1fr;gap:28px;padding-top:20px}
  .generic-page h1{font-size:2.4rem}
  .page-content{margin-top:54px;font-size:.9rem}

  .photography-page{padding-top:30px;padding-bottom:100px}
  .photography-head{padding-top:20px;margin-bottom:34px}
  .photography-head h1{font-size:2.4rem}
  .photography-grid{columns:1 100%;column-gap:0}
  .photography-item{margin-bottom:18px}
  .photography-note{margin-top:42px;font-size:.9rem}

  footer{font-size:.7rem;gap:16px;flex-wrap:wrap;padding-top:16px;padding-bottom:16px}
}

@keyframes appear{from{opacity:.18}to{opacity:1}}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .menu-panel,.menu-toggle span{transition:none}
  .featured-slide.is-active{animation:none}
}

/* Navigation visibility + reversible close transition. */
.menu-panel{visibility:hidden;pointer-events:none}
.menu-open .menu-panel,.menu-closing .menu-panel{visibility:visible}
.menu-open .menu-panel{pointer-events:auto}
.menu-closing .menu-panel{pointer-events:none}
.menu-toggle{background:transparent!important}
.languages,.rail-external{background:transparent!important}


@media (prefers-reduced-motion: reduce){
  .featured-slide{transition:none!important;transform:none!important}
  .spec-main.is-text-out>*,.spec-main.is-text-in>*{animation:none!important}
}



/* Subtle page-entry polish. */
#site-root{animation:iti-page-in .28s ease both}
@keyframes iti-page-in{from{opacity:.86}to{opacity:1}}
@media(prefers-reduced-motion:reduce){#site-root{animation:none}}

/* 404 */
.error-page{
  min-height:calc(100svh - 60px);
  padding:clamp(54px,7vw,100px) 0 clamp(90px,12vw,160px);
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);
  align-items:end;
  gap:clamp(40px,7vw,110px);
  border-top:var(--rule-width) solid var(--rule);
}
.error-code{
  font-size:clamp(8rem,22vw,24rem);
  line-height:.72;
  font-weight:400;
  letter-spacing:-.09em;
  white-space:nowrap;
}
.error-content{
  align-self:end;
  padding-bottom:clamp(4px,1.2vw,18px);
}
.error-content .section-code{margin-bottom:clamp(28px,4vw,56px)}
.error-message{
  max-width:34em;
  font-size:clamp(.92rem,1.15vw,1.08rem);
  line-height:1.8;
}
.error-home{
  display:inline-block;
  margin-top:clamp(36px,5vw,68px);
  padding-bottom:5px;
  border-bottom:var(--rule-width) solid currentColor;
  font-size:.76rem;
  letter-spacing:.03em;
}

@media(max-width:760px){
  .error-page{
    min-height:calc(100svh - 70px);
    padding-top:44px;
    padding-bottom:100px;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:space-between;
    gap:70px;
  }
  .error-code{
    font-size:clamp(7.2rem,38vw,10rem);
    line-height:.76;
  }
  .error-content{padding-bottom:0}
  .error-content .section-code{margin-bottom:24px}
  .error-message{font-size:.9rem;line-height:1.85}
  .error-home{margin-top:38px}
}
